fix: Force inline stylesheets for better CSS delivery

- Set build.inlineStylesheets to 'always'
- CSS embedded in HTML instead of external files
- More reliable for static hosting
- Fixes styling not loading issue
This commit is contained in:
Kunthawat
2026-03-11 15:01:35 +07:00
parent c48febe255
commit 66d6e7ac7b

View File

@@ -6,15 +6,10 @@ import tailwindcss from '@tailwindcss/vite';
// https://astro.build/config
export default defineConfig({
output: 'static',
build: {
inlineStylesheets: 'always',
},
vite: {
plugins: [tailwindcss()],
server: {
host: '0.0.0.0',
allowedHosts: true,
},
preview: {
host: '0.0.0.0',
allowedHosts: true,
},
},
});