-
-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[EXPERIMENTAL] Next.js 13 app
directory example
#342
Conversation
8aaf2a0
to
430841a
Compare
// // Allow supabase-js on the client to read the cookie as well | ||
// httpOnly: false | ||
// }); | ||
// context.res.setHeader('set-cookie', [...newSetCookies, newSessionStr]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
out of curiosity, cookie().set()
doesn't work in this case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are read-only functions: https://beta.nextjs.org/docs/upgrade-guide#accessing-request-object
But we're able to modify the res via middleware, see discussion here: #341 (comment)
// NOTE: This is experimental and used as research to understand how to support Next.js 13 in the future. | ||
// https://beta.nextjs.org/docs/data-fetching/fetching#example-fetch-and-use-in-client-components | ||
|
||
import { use } from 'react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔 Will this be a client component without use client
?
Edit: This is probably still in draft and you are probably working on it. Just thought this might have been missed.
app
directory example
It would be great to keep the old example with the |
With version |
No description provided.