You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've created a project with create-next-app that simply includes an image on the page as well as the /api/ preview files taken from the demo project of this repo.
I'm not quite sure why this is happening yet, but maybe the route handling for preview mode isn't handling images in the public folder?
This only seems to affect preview mode as far as I can tell. I've tested in another repository and it seems to affect any file located in the public directory.
Thanks for the report. I've isolated this, and it's related to the redirects we add for preview mode to ensure it uses SSR. It's overriding the static files. We need to be more specific with the redirects to avoid this.
Steps to reproduce
I've created a project with create-next-app that simply includes an image on the page as well as the /api/ preview files taken from the demo project of this repo.
To see what's happening:
I'm not quite sure why this is happening yet, but maybe the route handling for preview mode isn't handling images in the public folder?
This only seems to affect preview mode as far as I can tell. I've tested in another repository and it seems to affect any file located in the public directory.
A link to a reproduction repository
https://github.com/Christopotamus/next-netlify-preview-images
More information about your build
What OS are you using?
No response
Your
netlify.toml
fileNo response
Relevant log output (or link to your logs)
No response
The text was updated successfully, but these errors were encountered: