Skip to content

Commit 4f47f39

Browse files
committed
feat(dash): add CF_PAGES_COMMIT_SHA to env schema
1 parent 85ab992 commit 4f47f39

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

apps/dashboard/astro.config.mjs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// @ts-check
2-
import { defineConfig } from "astro/config"
2+
import { defineConfig, envField } from "astro/config"
33

44
import cloudflare from "@astrojs/cloudflare"
55

@@ -9,6 +9,15 @@ export default defineConfig({
99
server: {
1010
port: 5000
1111
},
12+
env: {
13+
schema: {
14+
CF_PAGES_COMMIT_SHA: envField.string({
15+
context: "client",
16+
access: "public",
17+
default: "a1b2c3d"
18+
})
19+
}
20+
},
1221
output: "server",
1322
adapter: cloudflare()
1423
})

0 commit comments

Comments
 (0)