Repository navigation
Expand file tree
/
Copy pathastro.config.ts
More file actions
64 lines (63 loc) · 1.54 KB
/
Copy pathastro.config.ts
File metadata and controls
64 lines (63 loc) · 1.54 KB
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
import cloudflare from "@astrojs/cloudflare";
import react from "@astrojs/react";
import { defineConfig, envField } from "astro/config";
import { fileURLToPath } from "node:url";
export default defineConfig({
output: "server",
adapter: cloudflare({ imageService: "passthrough" }),
integrations: [react()],
session: false,
env: {
schema: {
AAD_CLIENT_ID: envField.string({
context: "server",
access: "secret",
optional: true,
}),
AAD_TENANT_ID: envField.string({
context: "server",
access: "secret",
optional: true,
}),
AAD_AUTHORITY: envField.string({
context: "server",
access: "secret",
optional: true,
}),
AAD_REDIRECT_URI: envField.string({
context: "server",
access: "secret",
optional: true,
}),
AAD_POST_LOGOUT_REDIRECT_URI: envField.string({
context: "server",
access: "secret",
optional: true,
}),
AAD_SCOPES: envField.string({
context: "server",
access: "secret",
default: "User.Read",
}),
API_BASE_URL: envField.string({
context: "server",
access: "secret",
}),
ENABLE_DEMO_ROUTES: envField.boolean({
context: "server",
access: "secret",
default: false,
}),
},
},
vite: {
optimizeDeps: {
exclude: ["astro/assets/services/noop"],
},
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
},
},
});