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'm having some issues with the pre-rendering when linking to static files. For example
Folder:
app
public/
index.js
images/
1.jpg
index.js
const App = () => {
return <a href="/images/1.jpg">Click this to see the image</a>
The pre-render build script returns an error in looking for a directory. It looks for an index.html in a folder of 1.jpg, rather than the image itself?
The following error was thrown during prerendering:
Error: ENOTDIR: not a directory, open '/dist/images/1.jpg/index.html'
I'm not sure if there's a way to turn off the pre-rendering for such a link?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey all,
I'm having some issues with the pre-rendering when linking to static files. For example
The pre-render build script returns an error in looking for a directory. It looks for an
index.html
in a folder of1.jpg
, rather than the image itself?I'm not sure if there's a way to turn off the pre-rendering for such a link?
Beta Was this translation helpful? Give feedback.
All reactions