fix: Add server config to astro.config.mjs as well
This commit is contained in:
@@ -6,6 +6,12 @@ import tailwindcss from '@tailwindcss/vite';
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
vite: {
|
||||
plugins: [tailwindcss()]
|
||||
plugins: [tailwindcss()],
|
||||
server: {
|
||||
allowedHosts: true // Allow all hosts for development
|
||||
},
|
||||
preview: {
|
||||
allowedHosts: true // Allow all hosts for production preview
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user