From 9c24c110b62331586292d4f3cff075d6319b859f Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 12 Feb 2021 11:54:59 +0000 Subject: [PATCH] fix(cli): re-enable `serve-static` redirect (#8814) closes #8684 --- packages/cli/src/utils/serve.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/cli/src/utils/serve.js b/packages/cli/src/utils/serve.js index 7b4214bd06..8b05f686e5 100644 --- a/packages/cli/src/utils/serve.js +++ b/packages/cli/src/utils/serve.js @@ -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) {