Skip to content
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

Fix: Call cookies function from route to flag as dynamic #57494

Conversation

dijonmusters
Copy link
Contributor

What?

Move calling the cookies function up to the route

Why?

This flags the route as dynamic, meaning we don't need to explicitly declare export const dynamic = 'force-dynamic'

How?

Passing the returned cookieStore into Supabase helper functions, rather than the cookies function itself

@dijonmusters dijonmusters requested review from a team as code owners October 26, 2023 10:32
@dijonmusters dijonmusters requested review from timeyoutakeit and leerob and removed request for a team October 26, 2023 10:32
@ijjk ijjk added the examples Issue/PR related to examples label Oct 26, 2023
@ijjk
Copy link
Member

ijjk commented Oct 26, 2023

Allow CI Workflow Run

  • approve CI run for commit: 8d90f23

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

2 similar comments
@ijjk
Copy link
Member

ijjk commented Oct 26, 2023

Allow CI Workflow Run

  • approve CI run for commit: 8d90f23

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

@ijjk
Copy link
Member

ijjk commented Oct 26, 2023

Allow CI Workflow Run

  • approve CI run for commit: 8d90f23

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

@kodiakhq kodiakhq bot merged commit b9dd6c4 into vercel:canary Oct 26, 2023
50 of 51 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
examples Issue/PR related to examples locked
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants