diff --git a/.env.example b/.env.example index ab42758616..3d9cf60702 100644 --- a/.env.example +++ b/.env.example @@ -83,6 +83,9 @@ NEXT_PUBLIC_STRIPE_PRO_PLAN_PRODUCT= NEXT_PUBLIC_STRIPE_PRO_PLAN_PRICE= NEXT_PUBLIC_STRIPE_PREMIUM_PLAN_PRICE= NEXT_PUBLIC_STRIPE_FREE_PLAN_PRICE= + +# Use for internal Public API Keys and optional +API_KEY_PREFIX=cal_ # *********************************************************************************************************** # - E-MAIL SETTINGS ***************************************************************************************** diff --git a/apps/web/server/routers/viewer/apiKeys.tsx b/apps/web/server/routers/viewer/apiKeys.tsx index 7d6e9e27b6..6959980153 100644 --- a/apps/web/server/routers/viewer/apiKeys.tsx +++ b/apps/web/server/routers/viewer/apiKeys.tsx @@ -37,7 +37,7 @@ export const apiKeysRouter = createProtectedRouter() hashedKey: hashedApiKey, }, }); - const prefixedApiKey = `${process.env.API_KEY_PREFIX ?? "pt_secret_"}${apiKey}`; + const prefixedApiKey = `${process.env.API_KEY_PREFIX ?? "cal_"}${apiKey}`; return prefixedApiKey; }, })