-
Notifications
You must be signed in to change notification settings - Fork 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
Latest version of Next.js is breaking this #3
Comments
v9.5.0 introduced the change. It was probably the trailing slash API changes. |
When I ask for the home page |
Here are two PRs that are related to the trailing slash changes: |
How would Next.js know to forward to |
Here's what I'm seeing:
|
Removing the trailing slash from the nextjs-domain-locales/server.js Line 26 in 82b2a28
To be: req.url = `/${locale}${req.url}`.replace(/\/$/, ''); That avoids the redirect but for some reason the page doesn't render. The server sends the HTML but it doesn't hydrate and render. 😮 |
The body has the style |
I bet there's some other data on the front-end that checks URLs and known locations to see if it ought to run. We trim the locale so the path won't match. We try to fix that by modifying the path in the NEXT_DATA but apparently that's not good enough anymore. Should we keep trying or give up on hacking? |
We're going to leave this for now and try a different strategy that doesn't use the dynamic |
I don't know what has changed in the last two months since I've been in this repo, but something is preventing our little hacks from working. It's somehow able to see past our rewrites and is returning a 308 redirect. I should be able to search their codebase for 308 and figure out what's going on.
The text was updated successfully, but these errors were encountered: