fix: async SecureStore token read + prod env fallback

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
René Schober
2026-03-20 16:31:27 +01:00
parent 51f0028883
commit 597e0d9390
2 changed files with 4 additions and 2 deletions

View File

@@ -6,6 +6,8 @@ export const env = createEnv({
client: {
EXPO_PUBLIC_SERVER_URL: z.url(),
},
runtimeEnv: process.env,
runtimeEnv: {
EXPO_PUBLIC_SERVER_URL: process.env.EXPO_PUBLIC_SERVER_URL ?? "https://api.app-forge.dev",
},
emptyStringAsUndefined: true,
});