#Next (13.2.4) not redirect in build mode after set cookie

6 messages · Page 1 of 1 (latest)

swift halo
#

'm trying to authorize through cookies and middleware. In dev mode, everything works fine. But in the assembly (npm run build) the redirect does not work after the cookies are set. I do not understand why in dev mode everything works as it should, but in the build the redirect does not work. In this case, cookies appear

kind sparrowBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

      🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in <id:customize>

      ✅ You can mark a message as the answer for your post with `Right click -> Apps -> Mark Solution`
      (if you don't see the option, try refreshing Discord with Ctrl + R)
little patrol
#

you need to return the redirects

#

no idea why that even works in dev

swift halo
#

If I return a redirect, then I have an infinite redirect. Only works if I return NextResponse.next()

little patrol