Created
February 2, 2022 19:58
-
-
Save remotesynth/b20ca38073880e56f0c72648d3dd4ce5 to your computer and use it in GitHub Desktop.
Next.js _app.js with LaunchDarkly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { AppProps } from 'next/app' | |
import '../styles/index.css' | |
function MyApp({ Component, pageProps }: AppProps) { | |
return <Component {...pageProps} /> | |
} | |
export default withLDProvider({ | |
clientSideID: process.env.LAUNCHDARKLY_SDK_CLIENT, | |
})(MyApp); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment