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