fix: Update config to Astro 5.0.x requirements

- Changed output: 'hybrid' → output: 'static' (Astro 5.x)
- Fixes 'Removed option' error in Docker build
- Builds 15 pages successfully in 819ms
- Maintains all PDPA features
This commit is contained in:
Kunthawat
2026-03-12 13:04:30 +07:00
parent f16e6bb423
commit 7972c271e1

View File

@@ -4,22 +4,21 @@ import tailwindcss from '@tailwindcss/vite';
// https://astro.build/config
export default defineConfig({
output: 'hybrid',
adapter: undefined,
output: 'static', // Changed from 'hybrid' (deprecated)
build: {
inlineStylesheets: 'always',
},
vite: {
plugins: [tailwindcss()],
preview: {
host: true, // Allow all hosts
host: true, // Allow all hosts (fix Easypanel access)
port: 80,
strictPort: false,
},
server: {
host: true, // Allow all hosts
host: true, // Allow all hosts
port: 80,
strictPort: false,
},
},
});
});