Answer the question
In order to leave comments, you need to log in
How to use an image in react/nextjs obtained from expressJS statics?
Good evening.
There was a problem and misunderstanding. Maybe someone will tell.
In ExpressJS, I serve static files with
app.use("/static", express.static(__dirname + '/public'));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question