- Set preview.allowedHosts to true - Allows Easypanel dynamic hostnames - Safe because container is behind Easypanel proxy - No need to hardcode specific domains
11 lines
253 B
JavaScript
11 lines
253 B
JavaScript
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
|
|
}
|
|
});
|