mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
remove launch darkly
This commit is contained in:
@@ -2,16 +2,18 @@ import { LDProvider } from "launchdarkly-react-client-sdk";
|
||||
import { ReactNode } from "react";
|
||||
|
||||
export function LaunchDarklyProvider({ children }: { children: ReactNode }) {
|
||||
if (
|
||||
process.env.NEXT_PUBLIC_LAUNCHDARKLY_ENABLED === true &&
|
||||
!process.env.NEXT_PUBLIC_LAUNCHDARKLY_CLIENT_ID
|
||||
) {
|
||||
throw new Error("NEXT_PUBLIC_LAUNCHDARKLY_CLIENT_ID is not defined");
|
||||
}
|
||||
// if (
|
||||
// process.env.NEXT_PUBLIC_LAUNCHDARKLY_ENABLED === true &&
|
||||
// !process.env.NEXT_PUBLIC_LAUNCHDARKLY_CLIENT_ID
|
||||
// ) {
|
||||
// throw new Error("NEXT_PUBLIC_LAUNCHDARKLY_CLIENT_ID is not defined");
|
||||
// }
|
||||
|
||||
return (
|
||||
<LDProvider clientSideID={process.env.NEXT_PUBLIC_LAUNCHDARKLY_CLIENT_ID}>
|
||||
{children}
|
||||
</LDProvider>
|
||||
);
|
||||
// return (
|
||||
// <LDProvider clientSideID={process.env.NEXT_PUBLIC_LAUNCHDARKLY_CLIENT_ID}>
|
||||
// {children}
|
||||
// </LDProvider>
|
||||
// );
|
||||
|
||||
return <>{children}</>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user