UNPKG

@clerk/nextjs

Version:

Clerk SDK for NextJS

32 lines 1.94 kB
import "../chunk-BUSYA2B4.js"; import { isTruthy } from "@clerk/shared/underscore"; import { SDK_METADATA } from "../server/constants"; const mergeNextClerkPropsWithEnv = (props) => { var _a; return { ...props, publishableKey: props.publishableKey || process.env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY || "", clerkJSUrl: props.clerkJSUrl || process.env.NEXT_PUBLIC_CLERK_JS_URL, clerkJSVersion: props.clerkJSVersion || process.env.NEXT_PUBLIC_CLERK_JS_VERSION, proxyUrl: props.proxyUrl || process.env.NEXT_PUBLIC_CLERK_PROXY_URL || "", domain: props.domain || process.env.NEXT_PUBLIC_CLERK_DOMAIN || "", isSatellite: props.isSatellite || isTruthy(process.env.NEXT_PUBLIC_CLERK_IS_SATELLITE), signInUrl: props.signInUrl || process.env.NEXT_PUBLIC_CLERK_SIGN_IN_URL || "", signUpUrl: props.signUpUrl || process.env.NEXT_PUBLIC_CLERK_SIGN_UP_URL || "", signInForceRedirectUrl: props.signInForceRedirectUrl || process.env.NEXT_PUBLIC_CLERK_SIGN_IN_FORCE_REDIRECT_URL || "", signUpForceRedirectUrl: props.signUpForceRedirectUrl || process.env.NEXT_PUBLIC_CLERK_SIGN_UP_FORCE_REDIRECT_URL || "", signInFallbackRedirectUrl: props.signInFallbackRedirectUrl || process.env.NEXT_PUBLIC_CLERK_SIGN_IN_FALLBACK_REDIRECT_URL || "", signUpFallbackRedirectUrl: props.signUpFallbackRedirectUrl || process.env.NEXT_PUBLIC_CLERK_SIGN_UP_FALLBACK_REDIRECT_URL || "", afterSignInUrl: props.afterSignInUrl || process.env.NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL || "", afterSignUpUrl: props.afterSignUpUrl || process.env.NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL || "", telemetry: (_a = props.telemetry) != null ? _a : { disabled: isTruthy(process.env.NEXT_PUBLIC_CLERK_TELEMETRY_DISABLED), debug: isTruthy(process.env.NEXT_PUBLIC_CLERK_TELEMETRY_DEBUG) }, sdkMetadata: SDK_METADATA }; }; export { mergeNextClerkPropsWithEnv }; //# sourceMappingURL=mergeNextClerkPropsWithEnv.js.map