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: {
|
||||
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
|
||||
});
|
||||
Reference in New Issue
Block a user