diff options
-rw-r--r-- | packages/astro/src/vite-plugin-build-html/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/astro/src/vite-plugin-build-html/index.ts b/packages/astro/src/vite-plugin-build-html/index.ts index 211145fd1..bdcf7b5ff 100644 --- a/packages/astro/src/vite-plugin-build-html/index.ts +++ b/packages/astro/src/vite-plugin-build-html/index.ts @@ -430,9 +430,9 @@ export function rollupPluginAstroBuildHTML(options: PluginOptions): VitePlugin { // Output directly to 404.html rather than 400/index.html // Supports any other status codes, too if (name.match(STATUS_CODE_RE)) { - outPath = npath.posix.join(`${name}.html`) + outPath = npath.posix.join(`${name}.html`); } else { - outPath = npath.posix.join(name, 'index.html') + outPath = npath.posix.join(name, 'index.html'); } this.emitFile({ |