Bind KV for Pages on Deploy

When I deploy my KV, especially as a new project through the Cloudflare Pages setup, is there a way to automatically bind a specific KV from the start instead of having to do it through the Functions Settings after it is created?
8 Replies
Chaika
Chaika6mo ago
Not through the dashboard, could try scripting it via the API if you do it a lot
jjjrmy
jjjrmy6mo ago
I mean in my repo like can I still us a wrangler.toml file
Chaika
Chaika6mo ago
No, Pages doesn't use that*. Everything has to be set in the dashboard * For local dev (Wrangler pages dev),it may pick it up and use it for some things, but never for deployment/deployed pages
jjjrmy
jjjrmy6mo ago
okay so if I'm doing pages through the dashboard, I have just do remember to do it manually if I were to do it via CLI and deploy that way can I use the Wrangler file?
Chaika
Chaika6mo ago
no
jjjrmy
jjjrmy6mo ago
oh so Pages just doesn't use the Wrangler config files
Chaika
Chaika6mo ago
Correct, except in local dev for some things Wrangler config files are for Cloudflare Workers
jjjrmy
jjjrmy6mo ago
gotcha kinda annoying but no biggie
Want results from more Discord servers?
Add your server
More Posts
R2 multipart upload failing with FileZilla ProThis is a followup to https://community.cloudflare.com/t/cloudflare-r2-doesnt-support-listparts-operDO in rust, using (asyn) storageDont know anyone who uses rust for DOs that would be able to help but on javascript you run this.staIs there any service interruption when I redeploy a worker?Hi, when I redeploy a worker, is there any kind of service interruption for users of the old versionSupabase + Cloudflare pages?I'm using Qwik and I want to know if it's possible to simply use Supabase without having to make a sService Binding call resulting in TypeErrorHello, I'm currently working on implementing Service Bindings but I'm running into the following errERR update check failed error="Get \"https://update.argotunnel.com?arch=arm64&clientVersion=2023.10.apiVersion: apps/v1 kind: Deployment metadata: name: httpbin-deployment spec: selector: matcUnable to connect via RDP when routing traffic through Cloudflare?First time using Cloudflare - have got it working on my @ record, however I have an rdp service, andProduction Website pages with cloudflare turnstile run script from "challenges.cloudflare.com".I work as developer for a big company and in production when i visit website and open developer toolGlobal Environment VariablesHey guys, I am migrating websites to cloudflare that utilise the same API keys, for example for a trDurable Objects queryHello, do storage queries support nested keys? ex. storage looks like this: ```js { messages: {