fix: Allow all hosts in Astro config
- Set host: true for both server and preview - Fix 'Blocked request' error on Easypanel - Enable external hostname access
This commit is contained in:
@@ -1,11 +1,25 @@
|
|||||||
// @ts-check
|
// @ts-check
|
||||||
import { defineConfig } from 'astro/config';
|
import { defineConfig } from 'astro/config';
|
||||||
|
|
||||||
import tailwindcss from '@tailwindcss/vite';
|
import tailwindcss from '@tailwindcss/vite';
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
output: 'hybrid',
|
||||||
|
adapter: undefined,
|
||||||
|
build: {
|
||||||
|
inlineStylesheets: 'always',
|
||||||
|
},
|
||||||
vite: {
|
vite: {
|
||||||
plugins: [tailwindcss()]
|
plugins: [tailwindcss()],
|
||||||
}
|
preview: {
|
||||||
|
host: true, // Allow all hosts
|
||||||
|
port: 80,
|
||||||
|
strictPort: false,
|
||||||
|
},
|
||||||
|
server: {
|
||||||
|
host: true, // Allow all hosts
|
||||||
|
port: 80,
|
||||||
|
strictPort: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user