- Set host: true for both server and preview - Fix 'Blocked request' error on Easypanel - Enable external hostname access
26 lines
507 B
JavaScript
26 lines
507 B
JavaScript
// @ts-check
|
|
import { defineConfig } from 'astro/config';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
output: 'hybrid',
|
|
adapter: undefined,
|
|
build: {
|
|
inlineStylesheets: 'always',
|
|
},
|
|
vite: {
|
|
plugins: [tailwindcss()],
|
|
preview: {
|
|
host: true, // Allow all hosts
|
|
port: 80,
|
|
strictPort: false,
|
|
},
|
|
server: {
|
|
host: true, // Allow all hosts
|
|
port: 80,
|
|
strictPort: false,
|
|
},
|
|
},
|
|
});
|