Changed to pass build arg & create NEXT envar

This commit is contained in:
Joel Biddle
2023-10-04 02:03:17 +00:00
parent 95af82963f
commit 390c2cc4d9
4 changed files with 7 additions and 14 deletions
+1 -2
View File
@@ -69,7 +69,6 @@ import {
useLogoutUser,
useUploadWsKey
} from "@app/hooks/api";
import { CURRENT_INFISICAL_VERSION } from "@app/version"
interface LayoutProps {
children: React.ReactNode;
@@ -700,7 +699,7 @@ export const AppLayout = ({ children }: LayoutProps) => {
)}
<div className="mb-2 w-full pl-5 duration-200 hover:text-mineshaft-200">
<FontAwesomeIcon icon={faInfo} className="mr-4 px-[0.1rem]" />
Current version: {CURRENT_INFISICAL_VERSION}
Platform Version: {process.env.NEXT_PUBLIC_INFISICAL_PLATFORM_VERSION || "N/A"}
</div>
</div>
</nav>