155aaa3153
This PR optimises the bundle size sent to the frontend for nextJS apps by lazy loading the SuperTokens backend SDK only when it's needed.
15 lines
320 B
JavaScript
15 lines
320 B
JavaScript
const port = process.env.APP_PORT || 3000
|
|
|
|
const apiBasePath = '/api/auth/'
|
|
|
|
export const websiteDomain =
|
|
process.env.APP_URL ||
|
|
process.env.NEXT_PUBLIC_APP_URL ||
|
|
`http://localhost:${port}`
|
|
|
|
export const appInfo = {
|
|
appName: 'SuperTokens Demo App',
|
|
websiteDomain,
|
|
apiDomain: websiteDomain,
|
|
apiBasePath,
|
|
}
|