Skip to content

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

tiffafoo
Copy link
Owner

@tiffafoo tiffafoo commented Nov 12, 2021

This branch/pr is a working example of how to get the Accept-Language header and NEXT_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

@netlify
Copy link

netlify bot commented Nov 12, 2021

✔️ 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}) {
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant