From a313229824cc294abdc55400cbd0027aee8397c9 Mon Sep 17 00:00:00 2001 From: Albert Peci Date: Thu, 10 Mar 2022 17:24:25 +0100 Subject: [PATCH] refactor: load copyright message from env --- nuxt.config.js | 4 ++++ pages/index.vue | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/nuxt.config.js b/nuxt.config.js index ed47c7f..3f31f59 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -16,6 +16,10 @@ export default { ] }, + publicRuntimeConfig: { + copyright: process.env.COPYRIGHT || 'powered by walt.id' + }, + // Global CSS: https://go.nuxtjs.dev/config-css css: [ "@/assets/css/bootstrap-icons.css" diff --git a/pages/index.vue b/pages/index.vue index b84c7b9..1ecce1e 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -17,7 +17,7 @@ Connect Wallet using Verifiable ID Connect Wallet using Bank ID

-

© 2022 walt.id

+

{{ $config.copyright }}