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:
Kunthawat
2026-03-12 13:35:46 +07:00
parent 12040dec5b
commit 74d7e5bee8

View File

@@ -8,17 +8,6 @@ export default defineConfig({
build: {
inlineStylesheets: 'always',
},
vite: {
plugins: [tailwindcss()],
preview: {
host: true, // Allow all hosts (fix Easypanel access)
port: 80,
strictPort: false,
},
server: {
host: true, // Allow all hosts
port: 80,
strictPort: false,
},
},
// Remove vite config - we only serve static files via serve package
// No preview/server config needed since using static file serving
});