fix: fix build time and version hash being evaluated at runtime
This commit is contained in:
parent
aa335b086a
commit
c1021b1192
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: {
|
||||
public: {
|
||||
apiVersion: 1,
|
||||
messageGroupingMaxDifference: 300000
|
||||
messageGroupingMaxDifference: 300000,
|
||||
buildTimeString: new Date().toISOString(),
|
||||
gitHash: process.env.GIT_SHORT_REV || "N/A",
|
||||
}
|
||||
},
|
||||
/* nitro: {
|
||||
|
|
|
@ -24,9 +24,9 @@
|
|||
</p>
|
||||
|
||||
<p style="font-size: .8em; color: var(--secondary-text-color)">
|
||||
Version Hash: {{ appConfig.gitHash }}
|
||||
Version Hash: {{ appConfig.public.gitHash }}
|
||||
<br>
|
||||
Build Time: {{ appConfig.buildTimeString }}
|
||||
Build Time: {{ appConfig.public.buildTimeString }}
|
||||
</p>
|
||||
|
||||
</ul>
|
||||
|
@ -44,7 +44,7 @@ import Button from '~/components/Button.vue';
|
|||
|
||||
const { logout } = useAuth()
|
||||
|
||||
const appConfig = useAppConfig()
|
||||
const appConfig = useRuntimeConfig()
|
||||
|
||||
interface Page {
|
||||
displayName: string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue