-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Failed to revalidate route of a specific locale #36092
Comments
If you are using middleware to internally rewite the pages, then the revalidation link will also get rewritten. I spent a lot of time trying to figure this. You can check the header for
This worked for me. |
Oh. I'm not using any middlewares btw |
yep same problem and i fix with |
I'm having the same issue as the origin poster. Though it only happens on Vercel.com, not locally.
My
|
@vnugent are you not seeing a separate log that shows the reason for the |
@ijjk No errors. According to the log, the page being validated ran fine (status 200). We're not swallowing exceptions in *edit: I've looked at the log again. The target page was never called. Something must have caused the exception before the page was called. The page component export async function getStaticPaths (): Promise<any> {
return {
paths: [{ params: { uid: '<redacted>' } }],
fallback: true
}
}
export const getStaticProps: GetStaticProps<UserHomeProps> = async ({ params }) => {
...
return {
props: data
}
}
... |
Hi, this has been updated in the latest version of Next.js If you are still encountering issues with this please open a fresh issue with a reproduction and we can investigate further! |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
What browser are you using? (if relevant)
Brave Version 1.37.111 Chromium: 100.0.4896.79 (Official Build) (x86_64)
How are you deploying your application? (if relevant)
Vercel
Describe the Bug
I have a page with the same template but different content depending on the locale. My locale configuration looks like this
I want to use the
unstable_revalidate
API to regenerate a specific page for a specific locale but when i call it with the page route (e.g.,unstable_revalidate('/se/interview')
) it results into an error as shown below:For more context (not sure if this helps), i am returning
{ notFound: true }
in mygetStaticProps
if the locale isdefault
.Expected Behavior
It should regenerate the page of that specific locale without any errors.
To Reproduce
Pretty much the same with the example
Update:
The text was updated successfully, but these errors were encountered: