fix 'unknown' version in footer (#511)

fixes #483
This commit is contained in:
Emma C. Pointer-Null
2022-05-30 14:28:23 -04:00
committed by GitHub
parent 3300c2302c
commit 735d23c9eb
2 changed files with 9 additions and 3 deletions

View File

@@ -275,7 +275,10 @@ export default {
height: '2px',
},
env: {
version: process.env.VERSION_ID || 'unknown',
owner: process.env.VERCEL_GIT_REPO_OWNER || 'modrinth',
slug: process.env.VERCEL_GIT_REPO_SLUG || 'knossos',
branch: process.env.VERCEL_GIT_COMMIT_REF || 'master',
hash: process.env.VERCEL_GIT_COMMIT_SHA || 'unknown',
domain: getDomain(),
},
publicRuntimeConfig: {