fix: local dev for zero backend

This commit is contained in:
BlankParticle
2025-05-11 10:55:14 +05:30
parent d79829cbf3
commit b9862fbd58
3 changed files with 5 additions and 10 deletions

View File

@@ -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"

View File

@@ -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",

View File

@@ -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": [
{