(core) stop applying product limits to grist-core

Summary:
Limits crafted for our SaaS product were getting applied to grist-core
users. This diff removes them. There will be limits on a future
self-managed product.

Test Plan: checked manually

Reviewers: georgegevoian

Reviewed By: georgegevoian

Differential Revision: https://phab.getgrist.com/D3255
This commit is contained in:
Paul Fitzpatrick
2022-02-08 13:40:48 -05:00
parent b80e56a4e1
commit 0f4153dc23
3 changed files with 7 additions and 4 deletions

View File

@@ -126,12 +126,13 @@ const PRODUCTS: IProduct[] = [
* Get names of products for different situations.
*/
export function getDefaultProductNames() {
const defaultProduct = process.env.GRIST_DEFAULT_PRODUCT;
return {
personal: 'starter', // Personal site start off on a functional plan.
teamInitial: 'stub', // Team site starts off on a limited plan, requiring subscription.
personal: defaultProduct || 'starter', // Personal site start off on a functional plan.
teamInitial: defaultProduct || 'stub', // Team site starts off on a limited plan, requiring subscription.
teamCancel: 'suspended', // Team site that has been 'turned off'.
team: 'team', // Functional team site.
teamFree: 'teamFree',
team: defaultProduct || 'team', // Functional team site.
teamFree: defaultProduct || 'teamFree',
};
}