-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathastro.config.mjs
57 lines (50 loc) · 1.3 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
import solidJs from "@astrojs/solid-js";
import tailwind from "@astrojs/tailwind";
import vercel from "@astrojs/vercel/serverless";
import { defineConfig, envField } from "astro/config";
import icon from "astro-icon";
// https://astro.build/config
export default defineConfig({
integrations: [tailwind(), solidJs(), icon()],
experimental: {
env: {
schema: {
OPENWEATHERMAP_KEY: envField.string({
context: "server",
access: "secret",
}),
OPENWEATHERMAP_LAT: envField.number({
context: "server",
access: "secret",
}),
OPENWEATHERMAP_LON: envField.number({
context: "server",
access: "secret",
}),
LASTFM_API_KEY: envField.string({
context: "server",
access: "secret",
}),
LASTFM_USERNAME: envField.string({
context: "server",
access: "public",
}),
GITHUB_PAT: envField.string({
context: "server",
access: "secret",
}),
VERCEL_GIT_COMMIT_SHA: envField.string({
context: "client",
access: "public",
optional: true,
}),
},
},
},
output: "server",
adapter: vercel({
isr: {
expiration: /* 5 minutes */ 5 * 60 * 1000,
},
}),
});