astro/examples/ssr/astro.config.mjs
Matthew Phillips 7b9d042dde
Allow SSR dynamic routes to not implement getStaticPaths (#2815)
* Allow SSR dynamic routes to not implement getStaticPaths

* Adds a changeset

* Update based on code-review comments
2022-03-17 08:31:01 -04:00

18 lines
294 B
JavaScript

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