add frontend version to nav-bar
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import type { NextConfig } from "next";
|
import type { NextConfig } from "next";
|
||||||
import createNextIntlPlugin from 'next-intl/plugin';
|
import createNextIntlPlugin from 'next-intl/plugin';
|
||||||
|
const { version } = require('./package.json');
|
||||||
|
|
||||||
const nextConfig: NextConfig = {
|
const nextConfig: NextConfig = {
|
||||||
experimental: {
|
experimental: {
|
||||||
@@ -7,6 +8,9 @@ const nextConfig: NextConfig = {
|
|||||||
bodySizeLimit: '10mb',
|
bodySizeLimit: '10mb',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
env: {
|
||||||
|
APP_VERSION: version,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const withNextIntl = createNextIntlPlugin();
|
const withNextIntl = createNextIntlPlugin();
|
||||||
|
|||||||
Generated
+1
-1
@@ -6,7 +6,7 @@
|
|||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "no-copy-frontend",
|
"name": "no-copy-frontend",
|
||||||
"version": "0.43.0",
|
"version": "0.44.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@a2seven/yoo-checkout": "^1.1.4",
|
"@a2seven/yoo-checkout": "^1.1.4",
|
||||||
"@react-input/mask": "^2.0.4",
|
"@react-input/mask": "^2.0.4",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "no-copy-frontend",
|
"name": "no-copy-frontend",
|
||||||
"version": "0.43.0",
|
"version": "0.44.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev -p 2999",
|
"dev": "next dev -p 2999",
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ import { useRef } from 'react';
|
|||||||
import { useClickOutside } from '@/app/hooks/useClickOutside';
|
import { useClickOutside } from '@/app/hooks/useClickOutside';
|
||||||
import { fetchReferralUserStats } from '@/app/actions/referralsActions';
|
import { fetchReferralUserStats } from '@/app/actions/referralsActions';
|
||||||
import { useQuery, useQueryClient } from '@tanstack/react-query';
|
import { useQuery, useQueryClient } from '@tanstack/react-query';
|
||||||
import { env } from 'process';
|
|
||||||
import { getBuildData } from '@/app/actions/action';
|
import { getBuildData } from '@/app/actions/action';
|
||||||
|
|
||||||
export default function NavLinks() {
|
export default function NavLinks() {
|
||||||
@@ -178,6 +177,7 @@ export default function NavLinks() {
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div className="build-versions">
|
<div className="build-versions">
|
||||||
|
<p>front v: {process.env.APP_VERSION}</p>
|
||||||
{frontendBuildDate && (
|
{frontendBuildDate && (
|
||||||
<div className="">
|
<div className="">
|
||||||
front: {frontendBuildDate}
|
front: {frontendBuildDate}
|
||||||
|
|||||||
Reference in New Issue
Block a user