Merge pull request 'fix build time and version hash being evaluated at runtime' (#17) from settings-metadata into main
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
Reviewed-on: #17
This commit is contained in:
commit
59a2855a1d
3 changed files with 6 additions and 9 deletions
|
@ -1,5 +0,0 @@
|
||||||
export default defineAppConfig({
|
|
||||||
title: "Gorb",
|
|
||||||
buildTimeString: new Date().toISOString(),
|
|
||||||
gitHash: process.env.GIT_SHORT_REV || "N/A"
|
|
||||||
})
|
|
|
@ -27,7 +27,9 @@ export default defineNuxtConfig({
|
||||||
runtimeConfig: {
|
runtimeConfig: {
|
||||||
public: {
|
public: {
|
||||||
apiVersion: 1,
|
apiVersion: 1,
|
||||||
messageGroupingMaxDifference: 300000
|
messageGroupingMaxDifference: 300000,
|
||||||
|
buildTimeString: new Date().toISOString(),
|
||||||
|
gitHash: process.env.GIT_SHORT_REV || "N/A",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/* nitro: {
|
/* nitro: {
|
||||||
|
|
|
@ -24,9 +24,9 @@
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p style="font-size: .8em; color: var(--secondary-text-color)">
|
<p style="font-size: .8em; color: var(--secondary-text-color)">
|
||||||
Version Hash: {{ appConfig.gitHash }}
|
Version Hash: {{ appConfig.public.gitHash }}
|
||||||
<br>
|
<br>
|
||||||
Build Time: {{ appConfig.buildTimeString }}
|
Build Time: {{ appConfig.public.buildTimeString }}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -44,7 +44,7 @@ import Button from '~/components/Button.vue';
|
||||||
|
|
||||||
const { logout } = useAuth()
|
const { logout } = useAuth()
|
||||||
|
|
||||||
const appConfig = useAppConfig()
|
const appConfig = useRuntimeConfig()
|
||||||
|
|
||||||
interface Page {
|
interface Page {
|
||||||
displayName: string;
|
displayName: string;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue