If this is in pages dev then it’s local and doesn’t write to your actual namespace
If this is in pages dev then it’s local and doesn’t write to your actual namespace

expires is set, in which case I'd assume it doesn't take long to disappear after), but not being able to 'GET' the value on a Pages Function, several days after it's already been put (and is shown on the dashboard), feels a lot like a bug and not a "that's how it is".wrangler.toml) on a Pages project (with a Function). I can see that when I run wrangler pages locally it binds correctly (if it didn't, it wouldn't be able to fetch any value anyway, but it can, albeit only one).list() and a consistent prefix - e.g. ${userId}-${urlId} so you can list all URLs by user - this may be tricky and lengthen your URLs.
wrangler config look like?name="pages-name"
pages_build_output_dir = "dist"
compatibility_date = "2024-06-12"
[[kv_namespaces]]
binding = "OAUTH_KV"
id = "..."
[dev]
port = 3000
[env.production]
[env.production.vars]
PUBLIC_ENVIRONMENT = "production"
SOME_VAR = "BLA BLA"
[env.preview]
[env.preview.vars]
PUBLIC_ENVIRONMENT = "preview"
SOME_VAR = "BLA BLA"expiresputlist()${userId}-${urlId}wrangler