fix: update script source path in index.html and set root directory in vite.config.ts

This commit is contained in:
Mabe
2026-06-21 16:47:18 +02:00
parent c54db37968
commit a92a67c8a7
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -7,6 +7,6 @@
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<script type="module" src="./main.tsx"></script>
</body>
</html>
+2
View File
@@ -2,6 +2,8 @@ import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
// Serve files from the `src` directory (index.html lives in src)
root: 'src',
plugins: [react()],
server: {
host: '0.0.0.0',