- 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
24 lines
544 B
JavaScript
24 lines
544 B
JavaScript
// @ts-check
|
|
import { defineConfig } from 'astro/config';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
output: 'static', // Changed from 'hybrid' (deprecated)
|
|
build: {
|
|
inlineStylesheets: 'always',
|
|
},
|
|
vite: {
|
|
plugins: [tailwindcss()],
|
|
preview: {
|
|
host: true, // Allow all hosts (fix Easypanel access)
|
|
port: 80,
|
|
strictPort: false,
|
|
},
|
|
server: {
|
|
host: true, // Allow all hosts
|
|
port: 80,
|
|
strictPort: false,
|
|
},
|
|
},
|
|
}); |