fix(cli): re-enable serve-static redirect (#8814)

closes #8684
This commit is contained in:
Daniel Roe 2021-02-12 11:54:59 +00:00 committed by GitHub
parent 04646c5e70
commit 9c24c110b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,8 +31,7 @@ export async function serve (cmd) {
app.use(
options.router.base,
serveStatic(options.generate.dir, {
extensions: ['html'],
redirect: !!options.router.trailingSlash
extensions: ['html']
})
)
if (options.generate.fallback) {