Custom relative path assetPrefix breaks with locales #23270
Labels
bug
Issue was opened via the bug report template.
please verify canary
The issue should be verified against next@canary. It will be closed after 30 days of inactivity
What version of Next.js are you using?
10.0.9
What version of Node.js are you using?
14.15.4
What browser are you using?
Chrome
What operating system are you using?
Windows
How are you deploying your application?
Local development
Describe the Bug
We will have several next.js applications sitting under the same domain, so will want to prefix _next requests. As referenced in #5602 (comment), we are using this method:
This works until we add locales, even with just one:
At this point, the rewrite does not seem to happen at all and a request such as
/docs/_next/static/chunks/pages/_app.js?ts=1616407895355
results in a404
.Expected Behavior
The rewrite for the prefixed assetPath is expected to work.
To Reproduce
The text was updated successfully, but these errors were encountered: