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
05/17/2023, 2:46 PM/kb/auth
/kb/api/auth
.haxzie
05/17/2023, 2:49 PMrp
05/17/2023, 2:49 PMpages/auth/[[...path]].tsx
file as well as of the pages/api/auth/[[...path]].tsx
fulehaxzie
05/17/2023, 2:50 PMrp
05/17/2023, 2:51 PMhaxzie
05/17/2023, 2:51 PMif (!res.writableEnded) {
res.status(404).send("Not found");
}
rp
05/17/2023, 2:53 PMhaxzie
05/17/2023, 2:54 PMrp
05/17/2023, 2:54 PMDEBUG=com.supertokens
haxzie
05/17/2023, 2:57 PMhttps://cdn.discordapp.com/attachments/1108401157568741428/1108407982183678003/Screenshot_2023-05-17_at_8.27.29_PM.png▾
rp
05/17/2023, 2:58 PMhaxzie
05/17/2023, 2:59 PMrp
05/17/2023, 2:59 PMhaxzie
05/17/2023, 3:03 PMhttps://cdn.discordapp.com/attachments/1108401157568741428/1108409464740139068/Screenshot_2023-05-17_at_8.33.07_PM.png▾
rp
05/17/2023, 3:05 PMappInfo
objecthaxzie
05/17/2023, 3:07 PMhttps://cdn.discordapp.com/attachments/1108401157568741428/1108410527631286362/Screenshot_2023-05-17_at_8.37.37_PM.png▾
rp
05/17/2023, 3:08 PM/api/auth
/kb/api/auth
haxzie
05/17/2023, 3:12 PMrp
05/17/2023, 3:12 PMhaxzie
05/17/2023, 3:20 PM