-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathastro.config.mjs
38 lines (36 loc) · 945 Bytes
/
astro.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { defineConfig, envField } from 'astro/config';
import react from '@astrojs/react';
// https://astro.build/config
export default defineConfig({
output: 'server',
env: {
schema: {
DATOCMS_PUBLISHED_CONTENT_CDA_TOKEN: envField.string({
context: 'server',
access: 'secret',
}),
DATOCMS_DRAFT_CONTENT_CDA_TOKEN: envField.string({
context: 'server',
access: 'secret',
}),
DATOCMS_CMA_TOKEN: envField.string({
context: 'server',
access: 'secret',
}),
SECRET_API_TOKEN: envField.string({
context: 'server',
access: 'secret',
}),
SIGNED_COOKIE_JWT_SECRET: envField.string({
context: 'server',
access: 'secret',
}),
DRAFT_MODE_COOKIE_NAME: envField.string({
context: 'client',
access: 'public',
}),
},
validateSecrets: true,
},
integrations: [react()],
});