summaryrefslogtreecommitdiff
path: root/examples/ssr/astro.config.mjs
blob: f6aba20cef77eeeacfb4528b098c5cc4075a9c4d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { defineConfig } from 'astro/config';
import svelte from '@astrojs/svelte';
import nodejs from '@astrojs/node';

// https://astro.build/config
export default defineConfig({
	adapter: nodejs(),
	integrations: [svelte()],
	vite: {
		server: {
			cors: {
				credentials: true,
			},
			proxy: {
				'/api': {
					target: 'http://127.0.0.1:8085',
					changeOrigin: true,
				},
			},
		},
	},
});