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

13
index.html Normal file
View File

@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Stargirlnails Kiel - Terminbuchung</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/client/main.tsx"></script>
</body>
</html>

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(),