From 2cda5254fa53ef865a5bbd57fe8cc09d63900a7a Mon Sep 17 00:00:00 2001 From: Greg Date: Tue, 20 May 2025 21:33:56 +0200 Subject: [PATCH] debug config --- astro.config.mjs | 14 ++++++++------ vite.config.js | 18 ++++++------------ 2 files changed, 14 insertions(+), 18 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index e9011ac..018fde1 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -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 diff --git a/vite.config.js b/vite.config.js index 14a9535..67c4377 100644 --- a/vite.config.js +++ b/vite.config.js @@ -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. }; +