File tree Expand file tree Collapse file tree
packages/web/src/app/[domain]/settings Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import { getMe, getOrgAccountRequests } from "@/actions";
1111import { ServiceErrorException } from "@/lib/serviceError" ;
1212import { getOrgFromDomain } from "@/data/org" ;
1313import { OrgRole } from "@prisma/client" ;
14+ import { env } from "@/env.mjs" ;
1415
1516export const metadata : Metadata = {
1617 title : "Settings" ,
@@ -84,10 +85,12 @@ export default async function SettingsLayout({
8485 title : "API Keys" ,
8586 href : `/${ domain } /settings/apiKeys` ,
8687 } ,
87- {
88- title : "License" ,
89- href : `/${ domain } /settings/license` ,
90- }
88+ ...( env . NEXT_PUBLIC_SOURCEBOT_CLOUD_ENVIRONMENT === undefined ? [
89+ {
90+ title : "License" ,
91+ href : `/${ domain } /settings/license` ,
92+ }
93+ ] : [ ] ) ,
9194 ]
9295
9396 return (
Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ import { Button } from "@/components/ui/button";
33import { Info , Mail } from "lucide-react" ;
44import { getOrgMembers } from "@/actions" ;
55import { isServiceError } from "@/lib/utils" ;
6- import { ServiceErrorException } from "@/lib/serviceError" ;
6+ import { notFound , ServiceErrorException } from "@/lib/serviceError" ;
7+ import { env } from "@/env.mjs" ;
78
89interface LicensePageProps {
910 params : {
@@ -12,6 +13,10 @@ interface LicensePageProps {
1213}
1314
1415export default async function LicensePage ( { params : { domain } } : LicensePageProps ) {
16+ if ( env . NEXT_PUBLIC_SOURCEBOT_CLOUD_ENVIRONMENT !== undefined ) {
17+ notFound ( ) ;
18+ }
19+
1520 const licenseKey = await getLicenseKey ( ) ;
1621 const entitlements = await getEntitlements ( ) ;
1722 const plan = await getPlan ( ) ;
You can’t perform that action at this time.
0 commit comments