@@ -2,7 +2,6 @@ import { base64Decode } from "./utils.js";
22import { z } from "zod" ;
33import { createLogger } from "./logger.js" ;
44import { env } from "./env.server.js" ;
5- import { env as clientEnv } from "./env.client.js" ;
65import { SOURCEBOT_SUPPORT_EMAIL , SOURCEBOT_UNLIMITED_SEATS } from "./constants.js" ;
76import { verifySignature } from "./crypto.js" ;
87
@@ -23,8 +22,6 @@ type LicenseKeyPayload = z.infer<typeof eeLicenseKeyPayloadSchema>;
2322// eslint-disable-next-line @typescript-eslint/no-unused-vars
2423const planLabels = {
2524 oss : "OSS" ,
26- "cloud:team" : "Team" ,
27- "cloud:demo" : "Demo" ,
2825 "self-hosted:enterprise" : "Enterprise (Self-Hosted)" ,
2926 "self-hosted:enterprise-unlimited" : "Enterprise (Self-Hosted) Unlimited" ,
3027} as const ;
@@ -49,12 +46,6 @@ const entitlementsByPlan: Record<Plan, Entitlement[]> = {
4946 oss : [
5047 "anonymous-access"
5148 ] ,
52- "cloud:team" : [
53- "billing" ,
54- "multi-tenancy" ,
55- "sso" ,
56- "code-nav"
57- ] ,
5849 "self-hosted:enterprise" : [
5950 "search-contexts" ,
6051 "sso" ,
@@ -74,12 +65,6 @@ const entitlementsByPlan: Record<Plan, Entitlement[]> = {
7465 "github-app" ,
7566 "anonymous-access"
7667 ] ,
77- // Special entitlement for https://demo.sourcebot.dev
78- "cloud:demo" : [
79- "anonymous-access" ,
80- "code-nav" ,
81- "search-contexts"
82- ] ,
8368} as const ;
8469
8570
@@ -118,14 +103,6 @@ export const getLicenseKey = (): LicenseKeyPayload | null => {
118103}
119104
120105export const getPlan = ( ) : Plan => {
121- if ( clientEnv . NEXT_PUBLIC_SOURCEBOT_CLOUD_ENVIRONMENT ) {
122- if ( clientEnv . NEXT_PUBLIC_SOURCEBOT_CLOUD_ENVIRONMENT === "demo" ) {
123- return "cloud:demo" ;
124- }
125-
126- return "cloud:team" ;
127- }
128-
129106 const licenseKey = getLicenseKey ( ) ;
130107 if ( licenseKey ) {
131108 const expiryDate = new Date ( licenseKey . expiryDate ) ;
0 commit comments