summaryrefslogtreecommitdiff
path: root/examples/ssr/astro.config.mjs
blob: c8e5061a6aa46ef1061f1a4ae7f6dfc2d7df2730 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { defineConfig } from 'astro/config';

export default defineConfig({
	renderers: ['@astrojs/renderer-svelte'],
	vite: {
		server: {
			cors: {
				credentials: true,
			},
			proxy: {
				'/api': {
					target: 'http://127.0.0.1:8085',
					changeOrigin: true,
				},
			},
		},
	},
});