一级目录直接404
WingGao opened this issue · comments
const serve = require('koa-static-router');
app.use(serve({
dir: `./dist`,
router: '/',
}));
访问 http://locahost:3000/assets/logo.svg
, 按理应该读取./dist/assets/logo.svg
,然而读取了./dist/logo.svg
导致404
感谢反馈,已修复,之前没有兼容到'/'。🙏