diff --git a/404.html b/404.html new file mode 100644 index 0000000..3830d0a --- /dev/null +++ b/404.html @@ -0,0 +1,26 @@ + + + + + + + yude.jp + + + + + + + + + +
+

404 Not Found

+
+ + diff --git a/package.json b/package.json index e2a9100..fa08063 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "tailwindcss": "^3.4.1" }, "devDependencies": { + "@types/bun": "^1.0.7", "@types/react": "^18.2.43", "@types/react-dom": "^18.2.17", "@typescript-eslint/eslint-plugin": "^6.14.0", diff --git a/vite.config.ts b/vite.config.ts index 861b04b..d0e1f3d 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,7 +1,17 @@ import { defineConfig } from 'vite' +import { resolve } from "path"; import react from '@vitejs/plugin-react-swc' // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], -}) + build: { + rollupOptions: { + input: { + main: resolve(__dirname, 'index.html'), + 404: resolve(__dirname, '404.html'), + } + } + } +} +)