astro/examples/ssr/astro.config.mjs
Matthew Phillips 4c25a1c2ea
Implements redirects, headers for SSR (#2798)
* Implements redirects, headers for SSR

* Move away from an explicit Request

* Properly handle endpoint routes in the build

* chore(lint): ESLint fix

* Update based on review comments

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-16 12:16:21 -04:00

18 lines
260 B
JavaScript

// @ts-check
export default defineConfig({
renderers: ['@astrojs/renderer-svelte'],
vite: {
server: {
cors: {
credentials: true
},
proxy: {
'/api': {
target: 'http://127.0.0.1:8085',
changeOrigin: true,
}
},
},
},
});