2022-03-17 07:31:01 -05:00
|
|
|
import { defineConfig } from 'astro/config';
|
2022-03-18 17:35:45 -05:00
|
|
|
import svelte from '@astrojs/svelte';
|
2022-02-14 12:48:52 -05:00
|
|
|
|
2022-03-18 17:35:45 -05:00
|
|
|
// https://astro.build/config
|
2022-03-15 15:27:17 -05:00
|
|
|
export default defineConfig({
|
2022-03-18 17:35:45 -05:00
|
|
|
integrations: [svelte()],
|
2022-02-14 12:48:52 -05:00
|
|
|
vite: {
|
|
|
|
server: {
|
2022-03-16 11:16:21 -05:00
|
|
|
cors: {
|
2022-03-16 11:17:34 -05:00
|
|
|
credentials: true,
|
2022-03-16 11:16:21 -05:00
|
|
|
},
|
2022-02-14 12:48:52 -05:00
|
|
|
proxy: {
|
2022-03-16 11:16:21 -05:00
|
|
|
'/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
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2022-02-14 12:48:52 -05:00
|
|
|
});
|