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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View File

@ -246,7 +246,7 @@
our GitHub page</a
>
</p>
<p>modrinth/knossos {{ version }}</p>
<p>{{ owner }}/{{ slug }} {{ branch }}@{{ hash.substring(0, 7) }}</p>
<p>© Rinth, Inc.</p>
</div>
<div class="links links-1" role="region" aria-label="Legal">
@ -337,7 +337,10 @@ export default {
data() {
return {
isDropdownOpen: false,
version: process.env.version || 'unknown',
owner: process.env.owner || 'modrinth',
slug: process.env.slug || 'knossos',
branch: process.env.branch || 'master',
hash: process.env.hash || 'unknown',
isMobileMenuOpen: false,
registeredSkipLink: null,
}

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: {