diff --git a/app.vue b/app.vue
index f8ae1201c..7f11e31fb 100644
--- a/app.vue
+++ b/app.vue
@@ -17,5 +17,7 @@ watch(
);
const portalRuntimeConfig = usePortalRuntimeConfig();
-logger.log(`=== App version: ${portalRuntimeConfig.appVersion} ===`);
+if (portalRuntimeConfig.gitRepoUrl && portalRuntimeConfig.gitCommitHash) {
+ logger.log(`=== App source: ${portalRuntimeConfig.gitRepoUrl}/commit/${portalRuntimeConfig.gitCommitHash} ===`);
+}
diff --git a/components/footer/Footer.vue b/components/footer/Footer.vue
index 21f80a300..dfd14fabe 100644
--- a/components/footer/Footer.vue
+++ b/components/footer/Footer.vue
@@ -6,6 +6,12 @@
+
@@ -17,6 +23,7 @@
diff --git a/components/icons/GitHub.vue b/components/icons/GitHub.vue
new file mode 100644
index 000000000..4d61845af
--- /dev/null
+++ b/components/icons/GitHub.vue
@@ -0,0 +1,8 @@
+
+
+
diff --git a/composables/usePortalRuntimeConfig.ts b/composables/usePortalRuntimeConfig.ts
index afc69e1e0..46322a3c7 100644
--- a/composables/usePortalRuntimeConfig.ts
+++ b/composables/usePortalRuntimeConfig.ts
@@ -16,6 +16,7 @@ export const usePortalRuntimeConfig = () => {
: undefined,
},
hyperchainsConfig: runtimeConfig?.hyperchainsConfig,
- appVersion: runtimeConfig?.appVersion || process.env.APP_VERSION,
+ gitCommitHash: runtimeConfig?.gitCommitHash || process.env.GIT_COMMIT_HASH,
+ gitRepoUrl: runtimeConfig?.gitRepoUrl || process.env.GIT_REPO_URL,
};
};
diff --git a/nuxt.config.ts b/nuxt.config.ts
index ba3f6d370..eb0c22564 100644
--- a/nuxt.config.ts
+++ b/nuxt.config.ts
@@ -87,7 +87,8 @@ export default defineNuxtConfig({
"SCREENING_API_URL",
"RUDDER_KEY",
"DATAPLANE_URL",
- "APP_VERSION",
+ "GIT_COMMIT_HASH",
+ "GIT_REPO_URL",
].map((key) => [`process.env.${key}`, JSON.stringify(process.env[key])])
),
css: {
diff --git a/package.json b/package.json
index c2da02a22..44ab1c41e 100644
--- a/package.json
+++ b/package.json
@@ -7,7 +7,7 @@
"dev:node:memory": "cross-env NODE_TYPE=memory npm run dev",
"dev:node:docker": "cross-env NODE_TYPE=dockerized npm run dev",
"dev:node:hyperchain": "ts-node --transpile-only scripts/hyperchains/empty-check.ts && cross-env NODE_TYPE=hyperchain npm run dev",
- "generate": "cross-env APP_VERSION=$(git rev-parse --short HEAD) nuxt generate && npm run generate-meta",
+ "generate": "cross-env GIT_COMMIT_HASH=$(git rev-parse --short HEAD) GIT_REPO_URL=${$(git config --get remote.origin.url)//.git/} nuxt generate && npm run generate-meta",
"generate:node:memory": "cross-env NODE_TYPE=memory npm run generate",
"generate:node:docker": "cross-env NODE_TYPE=dockerized npm run generate",
"generate:node:hyperchain": "ts-node --transpile-only scripts/hyperchains/empty-check.ts && cross-env NODE_TYPE=hyperchain npm run generate",
diff --git a/types/index.d.ts b/types/index.d.ts
index c1bea649f..e58cbc607 100644
--- a/types/index.d.ts
+++ b/types/index.d.ts
@@ -146,7 +146,8 @@ declare global {
};
};
hyperchainsConfig?: HyperchainsConfig;
- appVersion?: string;
+ gitCommitHash?: string;
+ gitRepoUrl?: string;
};
}
}