Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/astro/src/env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ interface InternalEnv {
readonly PUBLIC_CLERK_PROXY_URL?: string;
readonly PUBLIC_CLERK_SIGN_IN_URL?: string;
readonly PUBLIC_CLERK_SIGN_UP_URL?: string;
readonly PUBLIC_CLERK_WAITLIST_URL?: string;
readonly PUBLIC_CLERK_TELEMETRY_DISABLED?: string;
readonly PUBLIC_CLERK_TELEMETRY_DEBUG?: string;
}
Expand Down
2 changes: 2 additions & 0 deletions packages/astro/src/server/get-safe-env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ function getSafeEnv(context: ContextOrLocals) {
machineSecretKey: getContextEnvVar('CLERK_MACHINE_SECRET_KEY', context),
signInUrl: getContextEnvVar('PUBLIC_CLERK_SIGN_IN_URL', context),
signUpUrl: getContextEnvVar('PUBLIC_CLERK_SIGN_UP_URL', context),
waitlistUrl: getContextEnvVar('PUBLIC_CLERK_WAITLIST_URL', context),
clerkJsUrl: getContextEnvVar('PUBLIC_CLERK_JS_URL', context),
clerkJsVariant: getContextEnvVar('PUBLIC_CLERK_JS_VARIANT', context) as 'headless' | '' | undefined,
clerkJsVersion: getContextEnvVar('PUBLIC_CLERK_JS_VERSION', context),
Expand All @@ -54,6 +55,7 @@ function getClientSafeEnv(context: ContextOrLocals) {
proxyUrl: getContextEnvVar('PUBLIC_CLERK_PROXY_URL', context),
signInUrl: getContextEnvVar('PUBLIC_CLERK_SIGN_IN_URL', context),
signUpUrl: getContextEnvVar('PUBLIC_CLERK_SIGN_UP_URL', context),
waitlistUrl: getContextEnvVar('PUBLIC_CLERK_WAITLIST_URL', context),
};
}

Expand Down
1 change: 1 addition & 0 deletions packages/express/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const loadApiEnv = () => {
domain: process.env.CLERK_DOMAIN || '',
proxyUrl: process.env.CLERK_PROXY_URL || '',
signInUrl: process.env.CLERK_SIGN_IN_URL || '',
waitlistUrl: process.env.CLERK_WAITLIST_URL || '',
isSatellite: isTruthy(process.env.CLERK_IS_SATELLITE),
jwtKey: process.env.CLERK_JWT_KEY || '',
sdkMetadata: {
Expand Down
1 change: 1 addition & 0 deletions packages/nextjs/src/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ declare namespace NodeJS {
NEXT_PUBLIC_CLERK_SIGN_UP_FALLBACK_REDIRECT_URL: string | undefined;
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL: string | undefined;
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL: string | undefined;
NEXT_PUBLIC_CLERK_WAITLIST_URL: string | undefined;
}
}

Expand Down
1 change: 1 addition & 0 deletions packages/nextjs/src/server/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const PROXY_URL = process.env.NEXT_PUBLIC_CLERK_PROXY_URL || '';
export const IS_SATELLITE = isTruthy(process.env.NEXT_PUBLIC_CLERK_IS_SATELLITE) || false;
export const SIGN_IN_URL = process.env.NEXT_PUBLIC_CLERK_SIGN_IN_URL || '';
export const SIGN_UP_URL = process.env.NEXT_PUBLIC_CLERK_SIGN_UP_URL || '';
export const WAITLIST_URL = process.env.NEXT_PUBLIC_CLERK_WAITLIST_URL || '';
export const SDK_METADATA = {
name: PACKAGE_NAME,
version: PACKAGE_VERSION,
Expand Down
1 change: 1 addition & 0 deletions packages/nextjs/src/utils/mergeNextClerkPropsWithEnv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const mergeNextClerkPropsWithEnv = (props: Omit<NextClerkProviderProps, '
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 || '',
waitlistUrl: props.waitlistUrl || process.env.NEXT_PUBLIC_CLERK_WAITLIST_URL || '',
newSubscriptionRedirectUrl:
props.newSubscriptionRedirectUrl || process.env.NEXT_PUBLIC_CLERK_CHECKOUT_CONTINUE_URL || '',
telemetry: props.telemetry ?? {
Expand Down
1 change: 1 addition & 0 deletions packages/react-router/src/utils/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const getPublicEnvVariables = (context: AppLoadContext | undefined) => {
proxyUrl: getValue('CLERK_PROXY_URL'),
signInUrl: getValue('CLERK_SIGN_IN_URL'),
signUpUrl: getValue('CLERK_SIGN_UP_URL'),
waitlistUrl: getValue('CLERK_WAITLIST_URL'),
clerkJsUrl: getValue('CLERK_JS_URL'),
clerkJsVariant: getValue('CLERK_JS_VARIANT') as '' | 'headless' | undefined,
clerkJsVersion: getValue('CLERK_JS_VERSION'),
Expand Down
2 changes: 2 additions & 0 deletions packages/remix/src/ssr/loadOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export const loadOptions = (args: LoaderFunctionArgs, overrides: RootAuthLoaderO
overrides.signUpFallbackRedirectUrl || getEnvVariable('CLERK_SIGN_UP_FALLBACK_REDIRECT_URL', context) || '';
const afterSignInUrl = overrides.afterSignInUrl || getEnvVariable('CLERK_AFTER_SIGN_IN_URL', context) || '';
const afterSignUpUrl = overrides.afterSignUpUrl || getEnvVariable('CLERK_AFTER_SIGN_UP_URL', context) || '';
const waitlistUrl = overrides.waitlistUrl || getEnvVariable('CLERK_WAITLIST_URL', context) || '';
const newSubscriptionRedirectUrl =
overrides.newSubscriptionRedirectUrl || getEnvVariable('CLERK_CHECKOUT_CONTINUE_URL', context) || '';

Expand Down Expand Up @@ -81,6 +82,7 @@ export const loadOptions = (args: LoaderFunctionArgs, overrides: RootAuthLoaderO
signUpUrl,
afterSignInUrl,
afterSignUpUrl,
waitlistUrl,
signInForceRedirectUrl,
signUpForceRedirectUrl,
signInFallbackRedirectUrl,
Expand Down
1 change: 1 addition & 0 deletions packages/tanstack-react-start/src/utils/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const getPublicEnvVariables = (context?: H3EventContext) => {
proxyUrl: getValue('CLERK_PROXY_URL'),
signInUrl: getValue('CLERK_SIGN_IN_URL'),
signUpUrl: getValue('CLERK_SIGN_UP_URL'),
waitlistUrl: getValue('CLERK_WAITLIST_URL'),
clerkJsUrl: getValue('CLERK_JS_URL') || getValue('CLERK_JS'),
clerkJsVariant: getValue('CLERK_JS_VARIANT') as '' | 'headless' | undefined,
clerkJsVersion: getValue('CLERK_JS_VERSION'),
Expand Down
Loading