fix: Update Dockerfile to use serve for production and enhance Vite configuration with CORS support

This commit is contained in:
MayaTheShy
2026-02-16 00:24:38 -05:00
parent dc3ed12b14
commit a8a99f4f53
2 changed files with 15 additions and 6 deletions

View File

@@ -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': '*'
}
}
})