Files
dealplustech/astro.config.mjs
Kunthawat f16e6bb423 fix: Allow all hosts in Astro config
- Set host: true for both server and preview
- Fix 'Blocked request' error on Easypanel
- Enable external hostname access
2026-03-12 12:54:34 +07:00

26 lines
507 B
JavaScript

// @ts-check
import { defineConfig } from 'astro/config';
import tailwindcss from '@tailwindcss/vite';
// https://astro.build/config
export default defineConfig({
output: 'hybrid',
adapter: undefined,
build: {
inlineStylesheets: 'always',
},
vite: {
plugins: [tailwindcss()],
preview: {
host: true, // Allow all hosts
port: 80,
strictPort: false,
},
server: {
host: true, // Allow all hosts
port: 80,
strictPort: false,
},
},
});