@@ -81,33 +81,43 @@ const withEmailCodesQuickstart = withEmailCodes
8181 . setEnvVariable ( 'public' , 'CLERK_SIGN_IN_URL' , '' )
8282 . setEnvVariable ( 'public' , 'CLERK_SIGN_UP_URL' , '' ) ;
8383
84- const withAPCore1ClerkLatest = environmentConfig ( )
85- . setId ( 'withAPCore1ClerkLatest ' )
84+ const withAPCore1ClerkV4 = environmentConfig ( )
85+ . setId ( 'withAPCore1ClerkV4 ' )
8686 . setEnvVariable ( 'public' , 'CLERK_TELEMETRY_DISABLED' , true )
8787 . setEnvVariable ( 'private' , 'CLERK_SECRET_KEY' , instanceKeys . get ( 'with-email-codes' ) . sk )
88- . setEnvVariable ( 'public' , 'CLERK_PUBLISHABLE_KEY' , instanceKeys . get ( 'with-email-codes' ) . pk )
89- . setEnvVariable ( 'public' , 'CLERK_JS_URL' , constants . E2E_APP_CLERK_JS || 'http://localhost:18211/clerk.browser.js' )
90- . setEnvVariable ( 'public' , 'CLERK_UI_URL' , constants . E2E_APP_CLERK_UI || 'http://localhost:18212/ui.browser.js' ) ;
88+ . setEnvVariable ( 'public' , 'CLERK_PUBLISHABLE_KEY' , instanceKeys . get ( 'with-email-codes' ) . pk ) ;
9189
92- const withAPCore1ClerkV4 = environmentConfig ( )
93- . setId ( 'withAPCore1ClerkV4' )
90+ // Uses staging instance which runs Core 3
91+ const withAPCore3ClerkV4 = environmentConfig ( )
92+ . setId ( 'withAPCore3ClerkV4' )
93+ . setEnvVariable ( 'public' , 'CLERK_TELEMETRY_DISABLED' , true )
94+ . setEnvVariable ( 'private' , 'CLERK_API_URL' , 'https://api.clerkstage.dev' )
95+ . setEnvVariable ( 'private' , 'CLERK_SECRET_KEY' , instanceKeys . get ( 'with-billing-staging' ) . sk )
96+ . setEnvVariable ( 'public' , 'CLERK_PUBLISHABLE_KEY' , instanceKeys . get ( 'with-billing-staging' ) . pk ) ;
97+
98+ const withAPCore1ClerkV6 = environmentConfig ( )
99+ . setId ( 'withAPCore1ClerkV6' )
94100 . setEnvVariable ( 'public' , 'CLERK_TELEMETRY_DISABLED' , true )
95101 . setEnvVariable ( 'private' , 'CLERK_SECRET_KEY' , instanceKeys . get ( 'with-email-codes' ) . sk )
96102 . setEnvVariable ( 'public' , 'CLERK_PUBLISHABLE_KEY' , instanceKeys . get ( 'with-email-codes' ) . pk ) ;
97103
98- const withAPCore2ClerkLatest = environmentConfig ( )
99- . setId ( 'withAPCore2ClerkLatest' )
104+ // Uses staging instance which runs Core 3
105+ const withAPCore3ClerkV6 = environmentConfig ( )
106+ . setId ( 'withAPCore3ClerkV6' )
100107 . setEnvVariable ( 'public' , 'CLERK_TELEMETRY_DISABLED' , true )
101- . setEnvVariable ( 'private' , 'CLERK_SECRET_KEY' , instanceKeys . get ( 'core-2-all-enabled' ) . sk )
102- . setEnvVariable ( 'public' , 'CLERK_PUBLISHABLE_KEY' , instanceKeys . get ( 'core-2-all-enabled' ) . pk )
103- . setEnvVariable ( 'public' , 'CLERK_JS_URL' , constants . E2E_APP_CLERK_JS || 'http://localhost:18211/clerk.browser.js' )
104- . setEnvVariable ( 'public' , 'CLERK_UI_URL' , constants . E2E_APP_CLERK_UI || 'http://localhost:18212/ui.browser.js' ) ;
108+ . setEnvVariable ( 'private' , 'CLERK_API_URL' , 'https://api.clerkstage.dev' )
109+ . setEnvVariable ( 'private' , 'CLERK_SECRET_KEY' , instanceKeys . get ( 'with-billing-staging' ) . sk )
110+ . setEnvVariable ( 'public' , 'CLERK_PUBLISHABLE_KEY' , instanceKeys . get ( 'with-billing-staging' ) . pk ) ;
105111
106- const withAPCore2ClerkV4 = environmentConfig ( )
107- . setId ( 'withAPCore2ClerkV4' )
112+ // Uses staging instance which runs Core 3
113+ const withAPCore3ClerkLatest = environmentConfig ( )
114+ . setId ( 'withAPCore3ClerkLatest' )
108115 . setEnvVariable ( 'public' , 'CLERK_TELEMETRY_DISABLED' , true )
109- . setEnvVariable ( 'private' , 'CLERK_SECRET_KEY' , instanceKeys . get ( 'core-2-all-enabled' ) . sk )
110- . setEnvVariable ( 'public' , 'CLERK_PUBLISHABLE_KEY' , instanceKeys . get ( 'core-2-all-enabled' ) . pk ) ;
116+ . setEnvVariable ( 'private' , 'CLERK_API_URL' , 'https://api.clerkstage.dev' )
117+ . setEnvVariable ( 'private' , 'CLERK_SECRET_KEY' , instanceKeys . get ( 'with-billing-staging' ) . sk )
118+ . setEnvVariable ( 'public' , 'CLERK_PUBLISHABLE_KEY' , instanceKeys . get ( 'with-billing-staging' ) . pk )
119+ . setEnvVariable ( 'public' , 'CLERK_JS_URL' , constants . E2E_APP_CLERK_JS || 'http://localhost:18211/clerk.browser.js' )
120+ . setEnvVariable ( 'public' , 'CLERK_UI_URL' , constants . E2E_APP_CLERK_UI || 'http://localhost:18212/ui.browser.js' ) ;
111121
112122const withDynamicKeys = withEmailCodes
113123 . clone ( )
@@ -198,10 +208,11 @@ export const envs = {
198208 base,
199209 sessionsProd1,
200210 withAPIKeys,
201- withAPCore1ClerkLatest,
202211 withAPCore1ClerkV4,
203- withAPCore2ClerkLatest,
204- withAPCore2ClerkV4,
212+ withAPCore1ClerkV6,
213+ withAPCore3ClerkV4,
214+ withAPCore3ClerkLatest,
215+ withAPCore3ClerkV6,
205216 withBilling,
206217 withBillingJwtV2,
207218 withCustomRoles,
0 commit comments