fix: Configure Vite preview server allowedHosts
- Add easypanel.host to allowed hosts list - Keep localhost and 127.0.0.1 for local dev - Use specific domain instead of true for security
This commit is contained in:
@@ -7,10 +7,10 @@ import tailwindcss from '@tailwindcss/vite';
|
|||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
output: 'static',
|
output: 'static',
|
||||||
vite: {
|
vite: {
|
||||||
server: {
|
plugins: [tailwindcss()],
|
||||||
|
preview: {
|
||||||
host: '0.0.0.0',
|
host: '0.0.0.0',
|
||||||
allowedHosts: true,
|
allowedHosts: ['.easypanel.host', 'localhost', '127.0.0.1'],
|
||||||
},
|
},
|
||||||
plugins: [tailwindcss()]
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user