kopia lustrzana https://github.com/bugout-dev/moonstream
frontend versioning added
rodzic
a7e172f8fe
commit
7e4b2561db
|
@ -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>
|
||||
|
|
Ładowanie…
Reference in New Issue