39 lines
908 B
JavaScript
39 lines
908 B
JavaScript
// @ts-check
|
|
import node from '@astrojs/node';
|
|
import { defineConfig } from 'astro/config';
|
|
import preact from '@astrojs/preact';
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
output: 'server',
|
|
adapter: node({
|
|
mode: 'standalone',
|
|
}),
|
|
vite: {
|
|
build: {
|
|
// Smanji intenzitet optimizacije tijekom dev-a
|
|
minify: false,
|
|
cssMinify: false,
|
|
},
|
|
server: {
|
|
allowedHosts: ['.mitteworkspace.cloud'],
|
|
watch: {
|
|
ignored: ['**/node_modules/**', '**/dist/**'],
|
|
usePolling: true,
|
|
interval: 1000
|
|
},
|
|
hmr: {
|
|
protocol: 'wss', // ili 'wss' ako koristiš HTTPS
|
|
clientPort: 443 // ili odgovarajući port ako nije 443
|
|
},
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:8000',
|
|
changeOrigin: true,
|
|
}
|
|
}
|
|
}
|
|
},
|
|
integrations: [preact({ devtools: true })]
|
|
});
|