-
Notifications
You must be signed in to change notification settings - Fork 27.5k
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
next-image-loader does not respect assetPrefix #28305
Comments
This is expected behavior as |
So if one were to deploy multiple Next.js apps on a single domain, each app with it's own path...it isn't supported by Next.js?
Based on how Next.js works today, So how is one supposed to deduce which request is for which app? |
Fixed in #29307. You can try it out on the canary channel with |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
What version of Next.js are you using?
11.1.0
What version of Node.js are you using?
14
What browser are you using?
Chrome
What operating system are you using?
macOS
How are you deploying your application?
Other (serverless aws)
Describe the Bug
When specifying an asset prefix, images do not respect it.
images still emit paths like
_next/
instead of/static/web-app/_next
Expected Behavior
Asset prefixes should be added to image paths.
I've been able to fix it with the following PR #28306
To Reproduce
Try adding an asset prefix via next config and check the image paths that are emitted.
The text was updated successfully, but these errors were encountered: