Replies: 5 comments 3 replies
-
I'm also curious about this. |
Beta Was this translation helpful? Give feedback.
-
Interesting, I did not know about this options until now. I suppose we could expose an option to match this feature in Next. It should also be already possible to workaround this on userland by setting the redirect on your server right? 👀 |
Beta Was this translation helpful? Give feedback.
-
Following this.
|
Beta Was this translation helpful? Give feedback.
-
Seeing the same redirect on every page when using the |
Beta Was this translation helpful? Give feedback.
-
How to solve this problem ? I am using next: 13.2.3 next-auth: 4.15.0 when I call /api/auth/session/ I got response /api/auth/session/ In my production build I have a lot errors
I need to have set on "trailingSlash: true," in next.config.js |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Question 💬
When calling getSession() or getting session from component interval we are getting a 308 redirect on the call. I believe this is due to having trailingSlashes enabled because the fetch request directly after the 308 is containing a trailing slash 'http://localhost:3000/api/auth/session/'
Are there any options or additional setup that I need to configure to reduce the number of calls to just the expected one?

How to reproduce ☕️
Using Below Next Config
`
const withPWA = require('next-pwa')
const runtimeCaching = require('next-pwa/cache')
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
})
module.exports = withBundleAnalyzer(
withPWA({
reactStrictMode: true,
trailingSlash: true,
staticPageGenerationTimeout: 5000,
dynamicStartUrlRedirect: '/en-us/',
pwa: {
dest: 'public',
register: true,
skipWaiting: true,
runtimeCaching,
},
poweredByHeader: false,
}),
)
`
Contributing 🙌🏽
No, I am afraid I cannot help regarding this
Beta Was this translation helpful? Give feedback.
All reactions