diff --git a/frontend/src/AppContext.js b/frontend/src/AppContext.js index be63bbf8..30dd0e7f 100644 --- a/frontend/src/AppContext.js +++ b/frontend/src/AppContext.js @@ -1,4 +1,4 @@ -import React from "react"; +import React, { useEffect } from "react"; import { ChakraProvider } from "@chakra-ui/react"; import theme from "./Theme/theme"; import { @@ -11,6 +11,11 @@ import { import { StripeProvider } from "./core/providers/StripeProvider"; const AppContext = (props) => { + useEffect(() => { + const version = process.env.NEXT_PUBLIC_FRONTEND_VERSION; + if (version) console.log(`Frontend version: ${version}`); + else console.error("Moonstream Frontend version variable is not exported"); + }, []); return (