fix: Allow all hosts in preview mode for Easypanel
- Set preview.allowedHosts to true - Allows Easypanel dynamic hostnames - Safe because container is behind Easypanel proxy - No need to hardcode specific domains
This commit is contained in:
10
vite.config.js
Normal file
10
vite.config.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import { defineConfig } from 'astro/config';
|
||||
|
||||
export default defineConfig({
|
||||
server: {
|
||||
allowedHosts: true // Allow all hosts (safe behind Easypanel proxy)
|
||||
},
|
||||
preview: {
|
||||
allowedHosts: true // Allow all hosts for production preview
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user