From c1d5f9eebffedcf4ded0708121cb59de000f3722 Mon Sep 17 00:00:00 2001 From: smanylov Date: Mon, 23 Feb 2026 12:20:25 +0700 Subject: [PATCH] add frontend version to nav-bar --- next.config.ts | 4 ++++ package-lock.json | 2 +- package.json | 2 +- src/app/ui/navigation/nav-links.tsx | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/next.config.ts b/next.config.ts index 15d0ac4..a030028 100644 --- a/next.config.ts +++ b/next.config.ts @@ -1,5 +1,6 @@ import type { NextConfig } from "next"; import createNextIntlPlugin from 'next-intl/plugin'; +const { version } = require('./package.json'); const nextConfig: NextConfig = { experimental: { @@ -7,6 +8,9 @@ const nextConfig: NextConfig = { bodySizeLimit: '10mb', }, }, + env: { + APP_VERSION: version, + }, }; const withNextIntl = createNextIntlPlugin(); diff --git a/package-lock.json b/package-lock.json index 930fd41..4e803fe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,7 +6,7 @@ "packages": { "": { "name": "no-copy-frontend", - "version": "0.43.0", + "version": "0.44.0", "dependencies": { "@a2seven/yoo-checkout": "^1.1.4", "@react-input/mask": "^2.0.4", diff --git a/package.json b/package.json index c86445e..6bd52cf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "no-copy-frontend", - "version": "0.43.0", + "version": "0.44.0", "private": true, "scripts": { "dev": "next dev -p 2999", diff --git a/src/app/ui/navigation/nav-links.tsx b/src/app/ui/navigation/nav-links.tsx index df0b5b9..a062a05 100644 --- a/src/app/ui/navigation/nav-links.tsx +++ b/src/app/ui/navigation/nav-links.tsx @@ -13,7 +13,6 @@ import { useRef } from 'react'; import { useClickOutside } from '@/app/hooks/useClickOutside'; import { fetchReferralUserStats } from '@/app/actions/referralsActions'; import { useQuery, useQueryClient } from '@tanstack/react-query'; -import { env } from 'process'; import { getBuildData } from '@/app/actions/action'; export default function NavLinks() { @@ -178,6 +177,7 @@ export default function NavLinks() {
+

front v: {process.env.APP_VERSION}

{frontendBuildDate && (
front: {frontendBuildDate}