izradena poslovna logika
This commit is contained in:
38
002.FRONTEND/astro.config.mjs
Normal file
38
002.FRONTEND/astro.config.mjs
Normal file
@@ -0,0 +1,38 @@
|
||||
// @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 })]
|
||||
});
|
||||
Reference in New Issue
Block a user