Skip to content

Commit

Permalink
process 404.html file as index.html file
Browse files Browse the repository at this point in the history
  • Loading branch information
joamartin committed Sep 11, 2024
1 parent a8e4896 commit 3ccb14a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
File renamed without changes.
10 changes: 9 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { fileURLToPath, URL } from 'node:url';

import { resolve } from 'path';
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';

Expand All @@ -14,4 +14,12 @@ export default defineConfig({
server: {
port: 3000,
},
build: {
rollupOptions: {
input: {
main: resolve(__dirname, 'index.html'),
notFound: resolve(__dirname, '404.html'),
},
},
},
});

0 comments on commit 3ccb14a

Please sign in to comment.