We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Document struct: static/img/1.jpg src/view src/routes/index.js
Static file: app.use(staticServe('static/'));
Router path: router.get('/aaa/bbb', () => { blabla... ctx.render(.......) })
But, I get a wrong path result on front end: 'http://localhost:8888/aaa/1.jpg' 404
HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
The text was updated successfully, but these errors were encountered:
You should let nginx or apache serve static file instead of nodejs. Link: https://hashnode.com/post/why-is-it-not-recommended-to-serve-static-files-from-nodejs-ciibz8flv01duj3xt4lxuomp3
Sorry, something went wrong.
Well, it was resolved. Please use '/css/index.css' on IMG or LINK elements. Don't lose '/' as begain.
No branches or pull requests
Document struct:
static/img/1.jpg
src/view
src/routes/index.js
Static file:
app.use(staticServe('static/'));
Router path:
router.get('/aaa/bbb', () => {
blabla...
ctx.render(.......)
})
But, I get a wrong path result on front end:
'http://localhost:8888/aaa/1.jpg' 404
HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
The text was updated successfully, but these errors were encountered: