-
Notifications
You must be signed in to change notification settings - Fork 1
/
astro.config.mjs
110 lines (108 loc) · 2.46 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
99
100
101
102
103
104
105
106
107
108
109
110
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://v2.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',
}),
TIER_SILVER_PRICE_ID: envField.string({
access: 'secret',
context: 'server',
}),
TIER_GOLD_PRICE_ID: envField.string({
access: 'secret',
context: 'server',
}),
TIER_PLATINUM_PRICE_ID: 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',
}),
DISCORD_BOT_TOKEN: envField.string({
access: 'secret',
context: 'server',
}),
},
},
});