feat(config): update server settings and CORS options
This commit is contained in:
@ -20,13 +20,24 @@ export default defineConfig({
|
|||||||
vite: {
|
vite: {
|
||||||
plugins: [tailwindcss()],
|
plugins: [tailwindcss()],
|
||||||
server: {
|
server: {
|
||||||
allowedHosts: ['jleibl.net'],
|
host: '0.0.0.0',
|
||||||
port: 4321
|
allowedHosts: true,
|
||||||
|
cors: {
|
||||||
|
origin: '*',
|
||||||
|
methods: ['GET'],
|
||||||
|
allowedHeaders: ['X-Requested-With']
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
preview: {
|
preview: {
|
||||||
|
host: '0.0.0.0',
|
||||||
allowedHosts: ['jleibl.net'],
|
allowedHosts: ['jleibl.net'],
|
||||||
port: 4321
|
port: 4321,
|
||||||
|
cors: {
|
||||||
|
origin: '*',
|
||||||
|
methods: ['GET'],
|
||||||
|
allowedHeaders: ['X-Requested-With']
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
Reference in New Issue
Block a user