remove env logs
This commit is contained in:
parent
ac2d7ecbe3
commit
e1468fbd6d
@ -26,7 +26,7 @@ type AppPropsWithLayout = AppProps & {
|
||||
docaposteApiUrl: string;
|
||||
};
|
||||
|
||||
const { publicRuntimeConfig, serverRuntimeConfig, env } = getConfig();
|
||||
const { publicRuntimeConfig } = getConfig();
|
||||
|
||||
const MyApp = (({
|
||||
Component,
|
||||
@ -58,16 +58,10 @@ const MyApp = (({
|
||||
instance.FC_CLIENT_ID = fcClientId;
|
||||
instance.DOCAPOST_API_URL = docaposteApiUrl;
|
||||
|
||||
console.log("instance", instance);
|
||||
|
||||
return getLayout(<Component {...pageProps} />);
|
||||
}) as AppType;
|
||||
|
||||
MyApp.getInitialProps = async () => {
|
||||
console.log("runtime config", publicRuntimeConfig);
|
||||
console.log("server runtime config", serverRuntimeConfig);
|
||||
console.log("process env", process.env['NEXT_PUBLIC_BACK_API_PROTOCOL'] || "env undefined");
|
||||
console.log("env config", env);
|
||||
return {
|
||||
backApiProtocol: publicRuntimeConfig.NEXT_PUBLIC_BACK_API_PROTOCOL,
|
||||
backApiHost: publicRuntimeConfig.NEXT_PUBLIC_BACK_API_HOST,
|
||||
|
Loading…
x
Reference in New Issue
Block a user