Skip to content

Commit 2d109ec

Browse files
dedupe deps
1 parent 56c751d commit 2d109ec

File tree

3 files changed

+832
-4568
lines changed

3 files changed

+832
-4568
lines changed

examples/minimal-expo/lib/trpc.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const resolveUrl = () => {
3434
"/api/trpc",
3535
typeof window.location !== "undefined"
3636
? window.location.origin
37-
: process.env.EXPO_PUBLIC_SERVER_ORIGIN ?? `http://${debuggerHost}`,
37+
: (process.env.EXPO_PUBLIC_SERVER_ORIGIN ?? `http://${debuggerHost}`),
3838
);
3939
} catch (e) {
4040
throw new Error(

packages/expo/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const generateReactNativeHelpers = <TRouter extends FileRouter>(
3838
initOpts?.url ?? "/api/uploadthing",
3939
typeof window.location !== "undefined"
4040
? window.location.origin
41-
: process.env.EXPO_PUBLIC_SERVER_ORIGIN ?? `http://${debuggerHost}`,
41+
: (process.env.EXPO_PUBLIC_SERVER_ORIGIN ?? `http://${debuggerHost}`),
4242
);
4343
} catch (e) {
4444
// Can't throw since window.location is undefined in Metro pass

0 commit comments

Comments
 (0)