mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(cli): respect router.trailingSlash
when serving static files (#8398)
This commit is contained in:
parent
e02fecdf5b
commit
09748d489e
@ -30,7 +30,8 @@ export async function serve (cmd) {
|
||||
app.use(
|
||||
options.router.base,
|
||||
serveStatic(options.generate.dir, {
|
||||
extensions: ['html']
|
||||
extensions: ['html'],
|
||||
redirect: !!options.router.trailingSlash
|
||||
})
|
||||
)
|
||||
if (options.generate.fallback) {
|
||||
|
Loading…
Reference in New Issue
Block a user