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 16:17:34 +00:00
credentials: true,
},
proxy: {
'/api': {
target: 'http://127.0.0.1:8085',
changeOrigin: true,
2022-03-16 16:17:34 +00:00
},
2022-02-14 17:50:16 +00:00
},
},
},
});