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:
@@ -4,22 +4,21 @@ import tailwindcss from '@tailwindcss/vite';
|
|||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
output: 'hybrid',
|
output: 'static', // Changed from 'hybrid' (deprecated)
|
||||||
adapter: undefined,
|
|
||||||
build: {
|
build: {
|
||||||
inlineStylesheets: 'always',
|
inlineStylesheets: 'always',
|
||||||
},
|
},
|
||||||
vite: {
|
vite: {
|
||||||
plugins: [tailwindcss()],
|
plugins: [tailwindcss()],
|
||||||
preview: {
|
preview: {
|
||||||
host: true, // Allow all hosts
|
host: true, // Allow all hosts (fix Easypanel access)
|
||||||
port: 80,
|
port: 80,
|
||||||
strictPort: false,
|
strictPort: false,
|
||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
host: true, // Allow all hosts
|
host: true, // Allow all hosts
|
||||||
port: 80,
|
port: 80,
|
||||||
strictPort: false,
|
strictPort: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user