fix(build): füge index.html hinzu und konfiguriere Vite Build für Hono-Setup
This commit is contained in:
@@ -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(),
|
||||
|
Reference in New Issue
Block a user