add frontend version to nav-bar

This commit is contained in:
smanylov
2026-02-23 12:20:25 +07:00
parent 70d6dea264
commit c1d5f9eebf
4 changed files with 7 additions and 3 deletions
+4
View File
@@ -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();
+1 -1
View File
@@ -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",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "no-copy-frontend",
"version": "0.43.0",
"version": "0.44.0",
"private": true,
"scripts": {
"dev": "next dev -p 2999",
+1 -1
View File
@@ -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() {
</ul>
<div className="build-versions">
<p>front v: {process.env.APP_VERSION}</p>
{frontendBuildDate && (
<div className="">
front: {frontendBuildDate}