MyFavStuff2/astro.config.mjs
2025-05-20 21:33:56 +02:00

29 lines
699 B
JavaScript

// @ts-check
import { defineConfig } from 'astro/config';
import tailwindcss from '@tailwindcss/vite';
// https://astro.build/config
export default defineConfig({
server: { // For astro dev
host: '0.0.0.0'
},
vite: {
plugins: [tailwindcss()],
preview: { // For astro preview (uses Vite's preview server)
host: '0.0.0.0',
port: 4321,
allowedHosts: [
'fwo4c4cgkos8k8kk8ow44kcc.reflectonai.com',
'localhost'
]
},
server: { // Vite-specific options for astro dev
// host is managed by Astro's top-level server.host
watch: {
// Enable polling for file changes in Docker
usePolling: true
}
}
}
});