0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-13 22:11:20 -05:00
astro/examples/ssr/astro.config.mjs

23 lines
403 B
JavaScript
Raw Normal View History

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: {
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
},
},
},
});