Merge pull request #26 from jamesmurdza/config-details

fix: add missing values and instructions to config files
This commit is contained in:
Ishaan Dey 2024-06-01 22:49:50 -07:00 committed by GitHub
commit 0f5b564299
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 15 additions and 1 deletions

View File

@ -6,11 +6,14 @@ compatibility_flags = ["nodejs_compat"]
services = [{ binding = "STORAGE", service = "storage" }] services = [{ binding = "STORAGE", service = "storage" }]
# Create a new D1 database using the Wrangler CLI and fill in database_name and database_id.
[[d1_databases]] [[d1_databases]]
binding = "DB" binding = "DB"
database_name = "" database_name = ""
database_id = "" database_id = ""
# Set STORAGE_WORKER_URL after deploying the worker.
# Set KEY to be the same as KEY in /backend/storage/wrangler.toml.
[vars] [vars]
KEY = "" KEY = ""
STORAGE_WORKER_URL = "" STORAGE_WORKER_URL = ""

View File

@ -1,2 +1,7 @@
# Set WORKERS_KEY to be the same as KEY in /backend/storage/wrangler.toml.
# Set DATABASE_WORKER_URL and STORAGE_WORKER_URL after deploying the workers.
PORT=4000 PORT=4000
WORKERS_KEY= WORKERS_KEY=
DATABASE_WORKER_URL=
STORAGE_WORKER_URL=

View File

@ -4,13 +4,16 @@ main = "src/index.ts"
compatibility_date = "2024-04-05" compatibility_date = "2024-04-05"
compatibility_flags = ["nodejs_compat"] compatibility_flags = ["nodejs_compat"]
# Fill in the account ID from the Cloudflare dashboard below.
account_id = "" account_id = ""
workers_dev = true workers_dev = true
# Deploy an R2 bucket from the Cloudflare dashboard and fill in bucket_name.
[[r2_buckets]] [[r2_buckets]]
binding = 'R2' binding = 'R2'
bucket_name = '' bucket_name = ''
preview_bucket_name = '' preview_bucket_name = ''
# KEY is required but can be set to any secret string.
[vars] [vars]
KEY = '' KEY = ''

View File

@ -6,8 +6,11 @@ LIVEBLOCKS_SECRET_KEY=
NEXT_PUBLIC_SERVER_PORT=4000 NEXT_PUBLIC_SERVER_PORT=4000
NEXT_PUBLIC_APP_URL=http://localhost:3000 NEXT_PUBLIC_APP_URL=http://localhost:3000
# Set WORKER_URLs after deploying the workers.
# Set NEXT_PUBLIC_WORKERS_KEY to be the same as KEY in /backend/storage/wrangler.toml.
NEXT_PUBLIC_DATABASE_WORKER_URL= NEXT_PUBLIC_DATABASE_WORKER_URL=
NEXT_PUBLIC_STORAGE_WORKER_URL= NEXT_PUBLIC_STORAGE_WORKER_URL=
NEXT_PUBLIC_WORKERS_KEY=
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up