Skip to content

Commit

Permalink
chore: add eas id and api env var
Browse files Browse the repository at this point in the history
  • Loading branch information
mgramigna committed Dec 18, 2023
1 parent da8ae07 commit 202bd03
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions apps/expo/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ const defineConfig = (): ExpoConfig => ({
// backgroundColor: '#1F104A',
},
},
// extra: {
// eas: {
// projectId: "your-eas-project-id",
// },
// },
extra: {
eas: {
projectId: 'b7b22a3e-0562-4094-ab36-1e9a28152ec6',
},
},
experiments: {
tsconfigPaths: true,
typedRoutes: true,
Expand Down
4 changes: 2 additions & 2 deletions apps/expo/src/utils/api.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ const getBaseUrl = () => {
const debuggerHost = Constants.expoConfig?.hostUri;
const localhost = debuggerHost?.split(':')[0];

if (process.env.VERCEL_URL) {
return `https://${process.env.VERCEL_URL}/api/trpc`;
if (process.env.NODE_ENV === 'production' && process.env.EXPO_PUBLIC_API_URL) {
return `${process.env.EXPO_PUBLIC_API_URL}/api/trpc`;
}

if (!localhost) {
Expand Down

0 comments on commit 202bd03

Please sign in to comment.