haxzie.
05/17/2023, 2:30 PMconst port = process.env.APP_PORT || 3000
const apiBasePath = '/kb/api/auth/'
export const websiteDomain =
process.env.APP_URL ||
process.env.NEXT_PUBLIC_APP_URL ||
`http://localhost:${port}`
export const appInfo = {
appName: 'Sample App',
websiteDomain,
apiDomain: websiteDomain,
apiBasePath,
}
If I remove the prefix the UI gets rendered well. I can see the requests are being hit to respective files but the UI doesnt seem to get rendered. Any other change should I make to get it working with a basepath in next apps?rp_st
05/17/2023, 2:46 PMrp_st
05/17/2023, 2:47 PM/kb/auth
rp_st
05/17/2023, 2:48 PM/kb/api/auth
.haxzie.
05/17/2023, 2:49 PMrp_st
05/17/2023, 2:49 PMpages/auth/[[...path]].tsx
file as well as of the pages/api/auth/[[...path]].tsx
fulerp_st
05/17/2023, 2:49 PMrp_st
05/17/2023, 2:49 PMhaxzie.
05/17/2023, 2:50 PMrp_st
05/17/2023, 2:51 PMhaxzie.
05/17/2023, 2:51 PMhaxzie.
05/17/2023, 2:53 PMif (!res.writableEnded) {
res.status(404).send("Not found");
}
rp_st
05/17/2023, 2:53 PMhaxzie.
05/17/2023, 2:54 PMrp_st
05/17/2023, 2:54 PMDEBUG=com.supertokens
haxzie.
05/17/2023, 2:57 PMrp_st
05/17/2023, 2:58 PMrp_st
05/17/2023, 2:58 PMhaxzie.
05/17/2023, 2:59 PMhaxzie.
05/17/2023, 2:59 PMrp_st
05/17/2023, 2:59 PMrp_st
05/17/2023, 2:59 PMrp_st
05/17/2023, 3:00 PMrp_st
05/17/2023, 3:00 PMrp_st
05/17/2023, 3:00 PMhaxzie.
05/17/2023, 3:03 PMrp_st
05/17/2023, 3:05 PMappInfo
objecthaxzie.
05/17/2023, 3:07 PMhaxzie.
05/17/2023, 3:07 PMrp_st
05/17/2023, 3:08 PM/api/auth
rp_st
05/17/2023, 3:08 PMrp_st
05/17/2023, 3:09 PM/kb/api/auth
haxzie.
05/17/2023, 3:12 PMhaxzie.
05/17/2023, 3:12 PMrp_st
05/17/2023, 3:12 PMrp_st
05/17/2023, 3:13 PMhaxzie.
05/17/2023, 3:20 PM