Skip to content

Commit 3976d38

Browse files
committed
test(ui): set static values for storybook
1 parent 4ad0679 commit 3976d38

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

modules/build-env.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@ export default defineNuxtModule({
2525
privacyPolicyDate: time.toISOString(),
2626
prNumber: null,
2727
} satisfies BuildInfo
28+
} else if (process.env.STORYBOOK === 'true') {
29+
const time = new Date('2026-01-22T10:07:07Z')
30+
nuxt.options.appConfig.buildInfo = {
31+
env,
32+
version: 'x.x.x',
33+
commit: 'abc1234567890',
34+
shortCommit: 'abc1234',
35+
branch: 'main',
36+
time: time.getTime(),
37+
privacyPolicyDate: time.toISOString(),
38+
prNumber: null,
39+
} satisfies BuildInfo
2840
} else {
2941
const [{ env: useEnv, version, commit, shortCommit, branch, prNumber }, privacyPolicyDate] =
3042
await Promise.all([getEnv(nuxt.options.dev), getFileLastUpdated('app/pages/privacy.vue')])

0 commit comments

Comments
 (0)