replace env variable useage so dyanmic not built

This commit is contained in:
2021-12-10 16:49:06 +00:00
parent 00e52a3127
commit 94883ddb58
3 changed files with 43 additions and 14 deletions
+4
View File
@@ -141,6 +141,8 @@ const Home = (props) => {
pages={pages}
showLogin={showLogin}
loggedInUserId={loggedInUserId}
GG_REDIRECT_URI={props.GG_REDIRECT_URI}
GG_CLIENT_ID={props.GG_CLIENT_ID}
/>
</>
)}
@@ -212,6 +214,8 @@ export const getServerSideProps = wrapper.getServerSideProps(
hasGGCode: hasLoginCode,
loggedInUserId: portalUserObj,
loggedInUserEmail: loginEmailStr,
GG_REDIRECT_URI: process.env.GG_REDIRECT_URI,
GG_CLIENT_ID: process.env.GG_CLIENT_ID,
},
};
}