MyFavStuff2/astro.config.mjs

27 lines
550 B
JavaScript

// @ts-check
import { defineConfig } from 'astro/config';
import tailwindcss from '@tailwindcss/vite';
// https://astro.build/config
export default defineConfig({
server: {
host: '0.0.0.0'
},
vite: {
plugins: [tailwindcss()],
preview: {
host: '0.0.0.0',
port: 4321,
// Allow all hosts for maximum flexibility with domain changes
allowedHosts: true
},
server: {
host: '0.0.0.0',
watch: {
// Enable polling for file changes in Docker
usePolling: true
}
}
}
});