Skip to content

Commit

Permalink
fix: some errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mrevanzak committed Oct 29, 2023
1 parent 3936429 commit 872b650
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
5 changes: 4 additions & 1 deletion apps/expo/src/utils/api.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ const getBaseUrl = () => {
const localhost = debuggerHost?.split(":")[0];

if (!localhost) {
// return "https://turbo.t3.gg";
if (process.env.EXPO_PUBLIC_API_URL) {
return process.env.EXPO_PUBLIC_API_URL;
}

throw new Error(
"Failed to get localhost. Please point to your production server.",
);
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"db:studio": "pnpm -F db studio",
"dev": "turbo dev --parallel",
"dev:web": "turbo --filter @vivat/nextjs dev",
"dev:android": "expo start --android",
"dev:ios": "expo start --ios",
"dev:android": "pnpm --filter expo dev:android",
"dev:ios": "pnpm --filter expo dev:ios",
"format": "turbo format --continue -- --cache --cache-location='node_modules/.cache/.prettiercache'",
"format:fix": "turbo format --continue -- --write --cache --cache-location='node_modules/.cache/.prettiercache'",
"lint": "turbo lint --continue -- --cache --cache-location 'node_modules/.cache/.eslintcache' && manypkg check",
Expand All @@ -36,4 +36,4 @@
"packages/*",
"tooling/*"
]
}
}
12 changes: 6 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tooling/tailwind/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@acme/tsconfig/base.json",
"extends": "@vivat/tsconfig/base.json",
"compilerOptions": {
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
},
Expand Down

0 comments on commit 872b650

Please sign in to comment.