@@ -332,12 +332,53 @@ The setup script will guide you through:
332332
333333After setup, start the development server:
334334
335+ #### Required for Manual Deployment
336+
337+ If you're deploying manually using ` bun run deploy ` , you ** must** set these environment variables:
338+
339+ ** Cloudflare API Token & Account ID:**
340+
341+ 1 . ** Get your Account ID** :
342+ - Go to [ Cloudflare Dashboard -> Workers and Pages] ( https://dash.cloudflare.com/?to=/:account/workers-and-pages )
343+ - Copy your Account ID from the right sidebar or URL
344+
345+ 2 . ** Create an API Token** :
346+ - Go to [ Cloudflare Dashboard -> API Tokens] ( https://dash.cloudflare.com/?to=/:account/api-tokens )
347+ - Click "Create Token" → Use custom token
348+ - Configure with these ** minimum required permissions** :
349+ - ** Account** → ** Containers** → ** Edit**
350+ - ** Account** → ** Secrets Store** → ** Edit**
351+ - ** Account** → ** D1** → ** Edit**
352+ - ** Account** → ** Workers R2 Storage** → ** Edit**
353+ - ** Account** → ** Workers KV Storage** → ** Edit**
354+ - ** Account** → ** Workers Scripts** → ** Edit**
355+ - ** Account** → ** Account Settings** → ** Read**
356+ - ** Zone** → ** Workers Routes** → ** Edit**
357+ - Under "Zone Resources": Select "All zones from an account" → Choose your account
358+ - Click "Continue to summary" → "Create Token"
359+ - Copy the token immediately (you won't see it again)
360+
361+ 3 . ** Set the environment variables** :
362+ ``` bash
363+ export CLOUDFLARE_API_TOKEN=" your-api-token-here"
364+ export CLOUDFLARE_ACCOUNT_ID=" your-account-id-here"
365+ ```
366+
367+ > ** Note** : These credentials are automatically provided when using the "Deploy to Cloudflare" button, but are required for manual ` bun run deploy ` .
368+
369+ ** For Local Development (.dev.vars):**
335370``` bash
336371bun run dev
337372```
338373
339374Visit ` http://localhost:5173 ` to access VibSDK locally.
340375
376+ ** For Production Deployment (.prod.vars):**
377+ ``` bash
378+ cp .dev.vars.example .prod.vars
379+ # Edit .prod.vars with your production API keys and tokens
380+ ```
381+
341382### Production Deployment
342383
343384Deploy to Cloudflare Workers:
0 commit comments