-
Notifications
You must be signed in to change notification settings - Fork 89
fix: handle shared-cache-controls rename #2974
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
Conversation
e3eae1b
to
fe07468
Compare
📊 Package size report 0.02%↑
Unchanged files
🤖 This report was automatically generated by pkg-size-action |
/** @type {import('next').GetStaticPaths} */ | ||
export const getStaticPaths = ({ locales }) => { | ||
return { | ||
paths: [ | ||
{ | ||
params: { | ||
slug: 'prerendered', | ||
}, | ||
}, | ||
], | ||
].flatMap((pathDescription) => locales.map((locale) => ({ ...pathDescription, 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.
This was wrong setup which was resulting in not prerendering not-default locale. This make sure that prerendered
page is actually prerendered for all locales.
This "fixes" one of the e2e failure that was supposed to be testing prerendered case for non default locale, but in practice it was testing not prerendered case
Remaining 3 failing tests are result of this regression in Next.js vercel/next.js#80838 . Tests likely will still need to be adjusted at least a little bit if caching issue is addressed still, but there doesn't seem to be a point in addressing those now until there is a fix for cache-control for fallback: true pages in Next.js |
Description
There was some changes in
next@canary
but break some of our handling. This address one of them. Remaining failing tests are results of regression innext@canary
(see vercel/next.js#80838 ) which hopefully be addressed in Next.js.Documentation
Tests
You can test this change yourself like so:
Relevant links (GitHub issues, etc.) or a picture of cute animal