add frontend version to nav-bar
This commit is contained in:
@@ -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();
|
||||
|
||||
Generated
+1
-1
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "no-copy-frontend",
|
||||
"version": "0.43.0",
|
||||
"version": "0.44.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev -p 2999",
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user