This repository has been archived by the owner on Dec 20, 2024. It is now read-only.
NextResponse not setting cookie #204
Locked
anstapol
started this conversation in
Show & Tell
Replies: 1 comment
-
Hey there! It appears as though all routes are triggering the middleware but there's perhaps something wrong in the code (something to do with the nested With this in mind, this question may be better suited for the Next.js GitHub Discussions! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using Next.js middleware feature I want to assign a cookie for all pages that are within a directory.
Directory structure:
_middleware.ts
Middleware log
But the browser cookies are empty...
Only when I visit
/onboard/1
I get theuuid
cookie and navigating further I get theab.onnoard
one.By the way, those pages are Server Side Generated.
Beta Was this translation helpful? Give feedback.
All reactions