fix: Update Dockerfile to use serve for production and enhance Vite configuration with CORS support
This commit is contained in:
@@ -5,12 +5,18 @@ export default defineConfig({
|
||||
plugins: [react()],
|
||||
server: {
|
||||
port: 3000,
|
||||
host: '0.0.0.0'
|
||||
host: '0.0.0.0',
|
||||
hmr: {
|
||||
clientPort: 3000
|
||||
}
|
||||
},
|
||||
preview: {
|
||||
port: 3000,
|
||||
host: '0.0.0.0',
|
||||
strictPort: true,
|
||||
allowedHosts: 'all'
|
||||
cors: true,
|
||||
headers: {
|
||||
'Access-Control-Allow-Origin': '*'
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user