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
// @ts-check
2
-
import { defineConfig } from 'astro/config';
3
4
// https://astro.build/config
5
-
export default defineConfig({});
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
// @ts-check
2
+
import { defineConfig, envField } from "astro/config";
3
4
// https://astro.build/config
5
+
export default defineConfig({
6
+
env: {
7
+
schema: {
8
+
SPOTIFY_CLIENT_ID: envField.string({
9
+
context: "server",
10
+
access: "secret",
11
+
}),
12
+
SPOTIFY_CLIENT_SECRET: envField.string({
13
+
context: "server",
14
+
access: "secret",
15
+
}),
16
+
},
17
+
},
18
+
});