- Removed separate vite.config.js - Added server and preview config directly to astro.config.mjs - Set allowedHosts: true to allow Easypanel hostnames - Set host: 0.0.0.0 for container networking
19 lines
361 B
JavaScript
19 lines
361 B
JavaScript
// @ts-check
|
|
import { defineConfig } from 'astro/config';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
|
|
export default defineConfig({
|
|
vite: {
|
|
plugins: [tailwindcss()]
|
|
},
|
|
// Allow all hosts - required for Easypanel deployment
|
|
server: {
|
|
host: '0.0.0.0',
|
|
allowedHosts: true
|
|
},
|
|
preview: {
|
|
host: '0.0.0.0',
|
|
allowedHosts: true
|
|
}
|
|
});
|