18 lines
356 B
TypeScript
18 lines
356 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
cors: true,
|
|
headers: {
|
|
'Access-Control-Allow-Origin': '*'
|
|
}
|
|
},
|
|
preview: {
|
|
port: 804,
|
|
host: true,
|
|
strictPort: true
|
|
},
|
|
publicDir: 'public' // Explicitly set public directory
|
|
})
|