Files
vercel__workflow/workbench/astro/astro.config.mjs
2026-01-07 12:52:52 -08:00

26 lines
762 B
JavaScript

import node from '@astrojs/node';
import vercel from '@astrojs/vercel';
import { defineConfig } from 'astro/config';
import { workflow } from 'workflow/astro';
// Node adapter needed for ci tests
const adapter = process.env.VERCEL_DEPLOYMENT_ID
? vercel()
: node({
mode: 'standalone',
});
// https://astro.build/config
export default defineConfig({
output: 'server',
integrations: [workflow()],
adapter: adapter,
// WARNING: CSRF protection is disabled for testing/development purposes.
// This configuration trusts all origins and should NOT be used in production.
// In production, specify only trusted origins or remove this configuration
// to use Astro's default CSRF protection.
security: {
checkOrigin: false,
},
});