Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Fix the test

Kiran K2ec299908570
diff --git a/apps/web/lib/sandbox/environment.ts b/apps/web/lib/sandbox/environment.ts
index df407d64bf..b79a2a3d7e 100644
--- a/apps/web/lib/sandbox/environment.ts
+++ b/apps/web/lib/sandbox/environment.ts
@@ -29,5 +29,7 @@ export function isValidPublishableKeyForEnvironment(
) {
const isTestKey = publishableKey.startsWith("dub_pk_test_");
- return isProductionEnvironment(environment) ? !isTestKey : isTestKey;
+ return isProductionEnvironment(environment)
+ ? publishableKey.startsWith("dub_pk_") && !isTestKey
+ : isTestKey;
}