fix: Configure allowedHosts in astro.config.mjs only

- 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
This commit is contained in:
Kunthawat Greethong
2026-03-03 10:46:53 +07:00
parent 70c0d9788f
commit 1382b2fafc
2 changed files with 10 additions and 19 deletions

View File

@@ -1,17 +1,18 @@
// @ts-check
import { defineConfig } from 'astro/config';
import tailwindcss from '@tailwindcss/vite';
// https://astro.build/config
export default defineConfig({
vite: {
plugins: [tailwindcss()],
server: {
allowedHosts: true // Allow all hosts for development
},
preview: {
allowedHosts: true // Allow all hosts for production preview
}
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
}
});