fix(build): füge index.html hinzu und konfiguriere Vite Build für Hono-Setup

This commit is contained in:
2025-10-01 21:42:21 +02:00
parent 4696948c6c
commit a7733c95f6
2 changed files with 20 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ export default defineConfig(({ mode }) => {
process.env = env;
}
return {
root: ".",
server: {
host: "0.0.0.0",
port: 5173,
@@ -20,6 +21,12 @@ export default defineConfig(({ mode }) => {
// Keine explizite HMR/Origin-Konfiguration, Vite-Defaults für localhost funktionieren am stabilsten
},
publicDir: "public",
build: {
outDir: "dist",
rollupOptions: {
input: "index.html"
}
},
plugins: [
tsconfigPaths(),
react(),