-
Notifications
You must be signed in to change notification settings - Fork 1
/
astro.config.mjs
98 lines (96 loc) · 3.05 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
import { defineConfig, envField } from 'astro/config';
import clerk from '@clerk/astro';
import netlify from '@astrojs/netlify';
import { imageService } from '@unpic/astro/service';
import mdx from '@astrojs/mdx';
import react from '@astrojs/react';
// https://astro.build/config
export default defineConfig({
site: 'https://www.learnwithjason.dev',
output: 'server',
integrations: [clerk({
afterSignInUrl: '/dashboard',
afterSignUpUrl: '/dashboard',
}), mdx(), react()],
image: {
domains: ['img.clerk.com'],
service: imageService(),
},
adapter: netlify(),
env: {
schema: {
PUBLIC_CLERK_PUBLISHABLE_KEY: envField.string({
access: 'public',
context: 'client',
}),
PUBLIC_CLERK_SIGN_IN_URL: envField.string({
access: 'public',
context: 'client',
}),
PUBLIC_CLERK_SIGN_UP_URL: envField.string({
access: 'public',
context: 'client',
}),
CLERK_SECRET_KEY: envField.string({
access: 'secret',
context: 'server',
}),
STRIPE_SECRET_KEY: envField.string({
access: 'secret',
context: 'server',
}),
STRIPE_WEBHOOK_SECRET: envField.string({
access: 'secret',
context: 'server',
}),
MUX_JWT_SIGNING_KEY: envField.string({
access: 'secret',
context: 'server',
}),
MUX_JWT_PRIVATE_KEY: envField.string({
access: 'secret',
context: 'server',
}),
MUX_TOKEN_ID: envField.string({
access: 'secret',
context: 'server',
}),
MUX_TOKEN_SECRET: envField.string({
access: 'secret',
context: 'server',
}),
CLOUDINARY_CLOUD_NAME: envField.string({
access: 'secret',
context: 'server',
}),
CLOUDINARY_API_KEY: envField.string({
access: 'secret',
context: 'server',
}),
CLOUDINARY_API_SECRET: envField.string({
access: 'secret',
context: 'server',
}),
CONVERTKIT_API_KEY: envField.string({
access: 'secret',
context: 'server',
}),
CONVERTKIT_SECRET_KEY: envField.string({
access: 'secret',
context: 'server',
}),
SANITY_SECRET_TOKEN: envField.string({
access: 'secret',
context: 'server',
}),
YOUTUBE_CHANNEL_ID: envField.string({
access: 'secret',
context: 'server',
}),
GOOGLE_CLOUD_API_KEY: envField.string({
access: 'secret',
context: 'server',
}),
},
},
});