0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/examples/ssr/astro.config.mjs

21 lines
347 B
JavaScript
Raw Normal View History

import { defineConfig } from 'astro/config';
import svelte from '@astrojs/svelte';
// https://astro.build/config
export default defineConfig({
integrations: [svelte()],
vite: {
server: {
cors: {
2022-03-16 11:17:34 -05:00
credentials: true,
},
proxy: {
'/api': {
target: 'http://127.0.0.1:8085',
changeOrigin: true,
2022-03-16 11:17:34 -05:00
},
2022-02-14 12:50:16 -05:00
},
},
},
});