debug config
This commit is contained in:
parent
0c633ae6c9
commit
2cda5254fa
@ -5,19 +5,21 @@ import tailwindcss from '@tailwindcss/vite';
|
|||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
server: {
|
server: { // For astro dev
|
||||||
host: '0.0.0.0'
|
host: '0.0.0.0'
|
||||||
},
|
},
|
||||||
vite: {
|
vite: {
|
||||||
plugins: [tailwindcss()],
|
plugins: [tailwindcss()],
|
||||||
preview: {
|
preview: { // For astro preview (uses Vite's preview server)
|
||||||
host: '0.0.0.0',
|
host: '0.0.0.0',
|
||||||
port: 4321,
|
port: 4321,
|
||||||
// Allow all hosts for maximum flexibility with domain changes
|
allowedHosts: [
|
||||||
allowedHosts: true
|
'fwo4c4cgkos8k8kk8ow44kcc.reflectonai.com',
|
||||||
|
'localhost'
|
||||||
|
]
|
||||||
},
|
},
|
||||||
server: {
|
server: { // Vite-specific options for astro dev
|
||||||
host: '0.0.0.0',
|
// host is managed by Astro's top-level server.host
|
||||||
watch: {
|
watch: {
|
||||||
// Enable polling for file changes in Docker
|
// Enable polling for file changes in Docker
|
||||||
usePolling: true
|
usePolling: true
|
||||||
|
|||||||
@ -1,15 +1,9 @@
|
|||||||
// vite.config.js
|
// 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 {
|
export default {
|
||||||
preview: {
|
// Example: If you had other Vite plugins or very specific Vite-only settings,
|
||||||
host: '0.0.0.0', // Ensure preview server also listens on all interfaces
|
// they would go here.
|
||||||
allowedHosts: [
|
// For now, it's minimal as Astro manages common settings.
|
||||||
'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'
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user