Allow custom environments in self-hosted instances

This commit is contained in:
mswider
2023-06-11 18:19:01 -05:00
committed by GitHub
parent 4b99a9ea93
commit 1dea6749ba
@@ -90,7 +90,7 @@ export const ProjectSettingsPage = () => {
// get user subscription // get user subscription
const { subscription } = useSubscription(); const { subscription } = useSubscription();
const host = window.location.origin; 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) => { const onRenameWorkspace = async (name: string) => {
try { try {