Merge pull request #636 from mswider/self-hosted-env

Allow custom environments in self-hosted instances
This commit is contained in:
vmatsiiako
2023-06-11 16:53:40 -07:00
committed by GitHub

View File

@@ -90,7 +90,7 @@ export const ProjectSettingsPage = () => {
// get user subscription
const { subscription } = useSubscription();
const host = window.location.origin;
const isEnvServiceAllowed = ((currentWorkspace?.environments || []).length < (subscription?.envLimit || 3) && host === 'https://app.infisical.com');
const isEnvServiceAllowed = ((currentWorkspace?.environments || []).length < (subscription?.envLimit || 3) || host !== 'https://app.infisical.com');
const onRenameWorkspace = async (name: string) => {
try {