Skip to content

Commit 1d175a0

Browse files
Rich-HarrisRich Harris
and
Rich Harris
authored
practice what we preach (#351)
Co-authored-by: Rich Harris <[email protected]>
1 parent 83c9244 commit 1d175a0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: svelte.config.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1+
import * as child_process from 'node:child_process';
12
import adapter from '@sveltejs/adapter-vercel';
23

34
/** @type {import('@sveltejs/kit').Config} */
45
const config = {
56
kit: {
6-
adapter: adapter({ runtime: 'edge' })
7+
adapter: adapter({ runtime: 'edge' }),
8+
9+
version: {
10+
name: child_process.execSync('git rev-parse HEAD').toString().trim()
11+
}
712
},
813

914
vitePlugin: {

0 commit comments

Comments
 (0)