Skip to content

Commit

Permalink
Optional client id
Browse files Browse the repository at this point in the history
  • Loading branch information
codergautam committed Oct 15, 2024
1 parent 19f8c0e commit c8db444
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ function App({ Component, pageProps }) {
return (
<>
<GoogleAnalytics trackPageViews gaMeasurementId="G-KFK0S0RXG5" />
{ process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID ? (
<GoogleOAuthProvider clientId={process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID}>
<Component {...pageProps} />

</GoogleOAuthProvider>
) : (
<Component {...pageProps} />
)}
</>
);
}
Expand Down

0 comments on commit c8db444

Please sign in to comment.