mirror of
https://github.com/vercel/workflow.git
synced 2026-09-14 19:59:43 +08:00
26 lines
762 B
JavaScript
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,
|
|
},
|
|
});
|