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