newly uploaded images will not show in background-image after build #13321
Unanswered
Robinzon100
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I made a simple API that takes text and image, uploads the image to
public/uploads/news
and saves the file path (example:/uploads/news/(1590330102136)--anykey.png
), when in development everything works finebut
after I do
next build
andnext start
everything works fine at first also, but when I want to upload something like an image and a text with my API (which uploads it to the file system inpublic/uploads/news
) text from the API is rendered, but the background-image shows me a 404 error and tells me that the image does not exist, even thou I see it's saved in the file systemif I do a
next build
the image appears againthis is the element I'm rendering
Beta Was this translation helpful? Give feedback.
All reactions