frontend versioning added

pull/351/head
Tim Pechersky 2021-10-20 16:22:35 +02:00
rodzic a7e172f8fe
commit 7e4b2561db
1 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -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 (
<UserProvider>
<ModalProvider>