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
This commit is contained in:
Kunthawat
2026-03-12 12:54:34 +07:00
parent 77ac4d2d05
commit f16e6bb423

View File

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