From b9862fbd5834a059edc9cf27ec4a554dbccb0fcc Mon Sep 17 00:00:00 2001 From: BlankParticle Date: Sun, 11 May 2025 10:55:14 +0530 Subject: [PATCH] fix: local dev for zero backend --- .env.example | 5 ++++- apps/server/package.json | 2 +- apps/server/wrangler.jsonc | 8 -------- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.env.example b/.env.example index 07d5bc0e8..d2474a2fb 100644 --- a/.env.example +++ b/.env.example @@ -7,7 +7,9 @@ DATABASE_URL="postgresql://postgres:postgres@localhost:5432/zerodotemail" BETTER_AUTH_SECRET=my-better-auth-secret BETTER_AUTH_URL=http://localhost:3000 BETTER_AUTH_TRUSTED_ORIGINS=http://localhost:3000 -COOKIE_DOMAIN=localhost + +COOKIE_DOMAIN="localhost" + # Change to your project's client ID and secret, these work with localhost:3000 and localhost:3001 GOOGLE_CLIENT_ID= GOOGLE_CLIENT_SECRET= @@ -27,6 +29,7 @@ AI_SYSTEM_PROMPT="" GROQ_API_KEY="" +DEFAULT_BRAIN_LIMIT="500" BRAIN_URL="" NODE_ENV="development" diff --git a/apps/server/package.json b/apps/server/package.json index 6da99b1fe..b692f16bd 100644 --- a/apps/server/package.json +++ b/apps/server/package.json @@ -6,7 +6,7 @@ "dev": "wrangler dev --show-interactive-dev-session=false --env staging", "build": "wrangler deploy --minify --dry-run", "deploy": "wrangler deploy --minify", - "types": "wrangler types --e staging" + "types": "wrangler types --env staging" }, "exports": { "./trpc": "./src/trpc/index.ts", diff --git a/apps/server/wrangler.jsonc b/apps/server/wrangler.jsonc index fc7b0e756..9c1d0b35a 100644 --- a/apps/server/wrangler.jsonc +++ b/apps/server/wrangler.jsonc @@ -26,12 +26,8 @@ }, ], "vars": { - "DEFAULT_BRAIN_LIMIT": "500", "NODE_ENV": "development", "FORCE_GMAIL_CONSENT": "true", - "NEXT_PUBLIC_BACKEND_URL": "https://sapi.0.email", - "NEXT_PUBLIC_APP_URL": "https://staging.0.email", - "COOKIE_DOMAIN": "0.email", }, "kv_namespaces": [ { @@ -64,12 +60,8 @@ }, ], "vars": { - "DEFAULT_BRAIN_LIMIT": "500", "NODE_ENV": "production", "FORCE_GMAIL_CONSENT": "true", - "NEXT_PUBLIC_BACKEND_URL": "https://api.0.email", - "NEXT_PUBLIC_APP_URL": "https://0.email", - "COOKIE_DOMAIN": "0.email", }, "kv_namespaces": [ {