fix: update script source path in index.html and set root directory in vite.config.ts
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user