tangled
alpha
login
or
join now
vielle.dev
/
site
0
fork
atom
Personal Site
0
fork
atom
overview
issues
pulls
pipelines
Add schema for SPOTIFY_CLIENT_* env (used for NowPlaying)
vielle.dev
7 months ago
8cc8c44b
53297560
verified
This commit was signed with the committer's
known signature
.
vielle.dev
SSH Key Fingerprint:
SHA256:/4bvxqoEh9iMdjAPgcgAgXKZZQTROL3ULiPt6nH9RSs=
+15
-2
1 changed file
expand all
collapse all
unified
split
astro.config.mjs
+15
-2
astro.config.mjs
···
1
1
// @ts-check
2
2
-
import { defineConfig } from 'astro/config';
2
2
+
import { defineConfig, envField } from "astro/config";
3
3
4
4
// https://astro.build/config
5
5
-
export default defineConfig({});
5
5
+
export default defineConfig({
6
6
+
env: {
7
7
+
schema: {
8
8
+
SPOTIFY_CLIENT_ID: envField.string({
9
9
+
context: "server",
10
10
+
access: "secret",
11
11
+
}),
12
12
+
SPOTIFY_CLIENT_SECRET: envField.string({
13
13
+
context: "server",
14
14
+
access: "secret",
15
15
+
}),
16
16
+
},
17
17
+
},
18
18
+
});