debug config
This commit is contained in:
parent
0c633ae6c9
commit
2cda5254fa
@ -5,19 +5,21 @@ import tailwindcss from '@tailwindcss/vite';
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
server: {
|
||||
server: { // For astro dev
|
||||
host: '0.0.0.0'
|
||||
},
|
||||
vite: {
|
||||
plugins: [tailwindcss()],
|
||||
preview: {
|
||||
preview: { // For astro preview (uses Vite's preview server)
|
||||
host: '0.0.0.0',
|
||||
port: 4321,
|
||||
// Allow all hosts for maximum flexibility with domain changes
|
||||
allowedHosts: true
|
||||
allowedHosts: [
|
||||
'fwo4c4cgkos8k8kk8ow44kcc.reflectonai.com',
|
||||
'localhost'
|
||||
]
|
||||
},
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
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
|
||||
|
||||
@ -1,15 +1,9 @@
|
||||
// vite.config.js
|
||||
// Astro's config (astro.config.mjs) now handles primary server and preview settings.
|
||||
// This file can be used for Vite-specific configurations not directly managed by Astro.
|
||||
export default {
|
||||
preview: {
|
||||
host: '0.0.0.0', // Ensure preview server also listens on all interfaces
|
||||
allowedHosts: [
|
||||
'fwo4c4cgkos8k8kk8ow44kcc.reflectonai.com',
|
||||
// Add other specific domains if needed, or localhost for local testing
|
||||
'localhost'
|
||||
]
|
||||
},
|
||||
server: {
|
||||
// Also configure the dev server to accept external connections
|
||||
host: '0.0.0.0'
|
||||
}
|
||||
// Example: If you had other Vite plugins or very specific Vite-only settings,
|
||||
// they would go here.
|
||||
// For now, it's minimal as Astro manages common settings.
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user