Wrap useSuspense with NoSSR (#8079)

This commit is contained in:
Alex van Andel authored and GitHub committed 2023-04-11 21:49:27 +05:30
1 parent ae8706316f
commit 98cf29f655
3 files changed
+27 -4

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ export const trpc = createTRPCNext<AppRouter, NextPageContext, "ExperimentalSusp
? "/api/trpc"
: process.env.VERCEL_URL
? `https://${process.env.VERCEL_URL}/api/trpc`
: `http://${process.env.NEXT_PUBLIC_WEBAPP_URL}/api/trpc`;
: `${process.env.NEXT_PUBLIC_WEBAPP_URL}/api/trpc`;
/**
* If you want to use SSR, you need to use the server's full URL