diff --git a/components/navigation/menu/Sidebar.vue b/components/navigation/menu/Sidebar.vue index df54c05c457765907826e2a2e857183ae156a422..9d7af8526ff592306ab0eb5f0fe3ad0566115d6e 100644 --- a/components/navigation/menu/Sidebar.vue +++ b/components/navigation/menu/Sidebar.vue @@ -50,7 +50,7 @@ "> <solid-terminal-icon style="width: 0.9rem" - aria-hidden="true" /> v{{ $config.clientVersion }} | + aria-hidden="true" /> v{{ version_ww }} | {{ $t("apropos.title") }} </button> </div> @@ -58,13 +58,15 @@ </template> <script> +import pkg from "~/package.json" import { LAST_BLOCK } from "@/graphql/queries.js" import { VERSION } from "@/graphql/queries.js" export default { data() { return { - screenwidth: 0 + screenwidth: 0, + version_ww: pkg.version } }, props: { diff --git a/nuxt.config.js b/nuxt.config.js index 114d7b843fc98384f7309abb15115ab4fe515972..00ceac73d0a42045dfe1eaea5cd00d9a874cf416 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -1,5 +1,4 @@ import i18n from "./i18n" -import pkg from "./package.json" import APOLLO_CONFIG from "./graphql/config" export default { @@ -10,10 +9,7 @@ export default { target: "static", // Variables that can be accessed by $config - publicRuntimeConfig: { - // Application version from package.json - clientVersion: pkg.version - }, + publicRuntimeConfig: {}, // Global page headers: https://go.nuxtjs.dev/config-head head: {