feat: show commit id (#331)
This commit is contained in:
parent
4d23fb1467
commit
a96d564eaa
2 changed files with 14 additions and 1 deletions
|
@ -31,6 +31,7 @@ export default defineNuxtConfig({
|
|||
vite: {
|
||||
define: {
|
||||
'import.meta.env.__BUILD_TIME__': JSON.stringify(new Date().toISOString()),
|
||||
'import.meta.env.__BUILD_COMMIT__': JSON.stringify(process.env.COMMIT_REF || ''),
|
||||
'process.env.VSCODE_TEXTMATE_DEBUG': 'false',
|
||||
'process.mock': ((isDevelopment || (isCI && process.env.PULL_REQUEST === 'true')) && process.env.MOCK_USER) || 'false',
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue