blob: b7d556b3bda528fb42a27b5c3d3399ef0a5c4610 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import cloudflare from '@astrojs/cloudflare';
import { defineConfig, envField } from 'astro/config';
export default defineConfig({
env: {
schema: {
API_URL: envField.string({ context: 'client', access: 'public', optional: true }),
PORT: envField.number({ context: 'server', access: 'public', default: 4321 }),
API_SECRET: envField.string({ context: 'server', access: 'secret' }),
},
},
adapter: cloudflare(),
output: 'server',
});
|