fix: Update host configuration in vite.config.js for server and preview
This commit is contained in:
@@ -5,11 +5,12 @@ export default defineConfig({
|
|||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
server: {
|
server: {
|
||||||
port: 3000,
|
port: 3000,
|
||||||
host: true
|
host: '0.0.0.0'
|
||||||
},
|
},
|
||||||
preview: {
|
preview: {
|
||||||
port: 3000,
|
port: 3000,
|
||||||
host: true,
|
host: '0.0.0.0',
|
||||||
strictPort: true
|
strictPort: true,
|
||||||
|
allowedHosts: 'all'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user