fix: Remove preview/server config from Astro
- Removed vite.preview/server config that was causing host blocks - Since we serve static files via 'serve' package, this config is unnecessary in production - Astro only builds static files and we serve them directly from dist/ folder - Eliminates 'Blocked request' error in production
This commit is contained in:
@@ -8,17 +8,6 @@ export default defineConfig({
|
|||||||
build: {
|
build: {
|
||||||
inlineStylesheets: 'always',
|
inlineStylesheets: 'always',
|
||||||
},
|
},
|
||||||
vite: {
|
// Remove vite config - we only serve static files via serve package
|
||||||
plugins: [tailwindcss()],
|
// No preview/server config needed since using static file serving
|
||||||
preview: {
|
|
||||||
host: true, // Allow all hosts (fix Easypanel access)
|
|
||||||
port: 80,
|
|
||||||
strictPort: false,
|
|
||||||
},
|
|
||||||
server: {
|
|
||||||
host: true, // Allow all hosts
|
|
||||||
port: 80,
|
|
||||||
strictPort: false,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user