-
Notifications
You must be signed in to change notification settings - Fork 0
Working v3 header cookie redirect #2
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
base: main
Are you sure you want to change the base?
Conversation
✔️ Deploy Preview for vigorous-lalande-d32aae ready! 🔨 Explore the source changes: 90b96d1 🔍 Inspect the deploy log: https://app.netlify.com/sites/vigorous-lalande-d32aae/deploys/618ec93a44c7e00007678af5 😎 Browse the preview: https://deploy-preview-2--vigorous-lalande-d32aae.netlify.app |
@@ -2,7 +2,7 @@ import Head from 'next/head' | |||
import Header from '@components/Header' | |||
import Footer from '@components/Footer' | |||
|
|||
export default function Home() { | |||
export default function Home({locale}) { |
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.
You do not need to actually pass the locale, we use it in the demo for visual purposes.
This branch/pr is a working example of how to get the
Accept-Language
header andNEXT_LOCALE
cookie to work as expected in the v3 version of the netlify next plugin. The main branch uses the v4 version of the plugin (in beta currently), which works out of the box.See opennextjs/opennextjs-netlify#788 for context