mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
5e52814d97
* Adapter v0 * Finalizing adapters * Update the lockfile * Add the default adapter after config setup is called * Create the default adapter in config:done * Fix lint error * Remove unused callConfigSetup * remove unused export * Use a test adapter to test SSR * Adds a changeset * Updated based on feedback * Updated the lockfile * Only throw if set to a different adapter * Clean up outdated comments * Move the adapter to an config option * Make adapter optional * Update the docs/changeset to reflect config API change * Clarify regular Node usage
22 lines
403 B
JavaScript
22 lines
403 B
JavaScript
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: {
|
|
credentials: true,
|
|
},
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://127.0.0.1:8085',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|