feat(env): add application version to environment variables and log it in the layout component

This commit is contained in:
AmirReza Jamali
2026-04-26 17:18:27 +03:30
parent 1540679095
commit 079d976c29
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -1,3 +1,4 @@
NEXT_PUBLIC_APP_VERSION=2.0.0
NEXT_PUBLIC_TOAST_AUTO_CLOSE_DURATION=2500
NEXT_PUBLIC_FIREBASE_API_KEY=AIzaSyCTjdsk2jE34IfnvSKP1JMTIf_Abd7tbt0
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=opplens-270d1.firebaseapp.com
+2
View File
@@ -24,6 +24,8 @@ export const metadata: Metadata = {
};
export default function RootLayout({ children }: PropsWithChildren) {
const appVersion = process.env.NEXT_PUBLIC_APP_VERSION;
console.log('App Version', appVersion);
return (
<html lang="en" suppressHydrationWarning>
<body>