- Added allowedHosts: true for dev and preview - Required for Easypanel hosting to work - Fixes 'Blocked request' error
21 lines
375 B
JavaScript
21 lines
375 B
JavaScript
// @ts-check
|
|
import { defineConfig } from 'astro/config';
|
|
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
output: 'static',
|
|
vite: {
|
|
plugins: [tailwindcss()],
|
|
server: {
|
|
host: '0.0.0.0',
|
|
allowedHosts: true,
|
|
},
|
|
preview: {
|
|
host: '0.0.0.0',
|
|
allowedHosts: true,
|
|
},
|
|
},
|
|
});
|