feat: add prod zero url

This commit is contained in:
Max Koon
2025-10-17 10:25:17 -04:00
parent 7d08a12a2a
commit 2131aef2a9
2 changed files with 3 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ export default function RootLayout() {
return {
storageKey: 'money',
kvStore,
server: 'http://localhost:4848',
server: process.env.NODE_ENV == 'production' ? 'https://zero.koon.us' : 'http://localhost:4848',
userID: authData?.user.id ?? "anon",
schema,
mutators: createMutators(authData),

View File

@@ -11,7 +11,8 @@
"build": "expo export --platform web",
"lint": "expo lint",
"db:migrate": "dotenv -- pnpm run --dir=shared db:migrate",
"db:gen": "dotenv -- pnpm run --dir=shared generate:zero"
"db:gen": "dotenv -- pnpm run --dir=shared generate:zero",
"dev": "process-compose up -p 0"
},
"dependencies": {
"@better-auth/expo": "^1.3.27",