fix: Add server config to astro.config.mjs as well

This commit is contained in:
Kunthawat Greethong
2026-03-03 10:43:48 +07:00
parent a6bc8f291c
commit 70c0d9788f

View File

@@ -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
}
}
});
});