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:
@@ -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
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user