Skip to content

Commit adf473b

Browse files
authored
chore: chanigng the amount of free custom domains to 1 (#4148)
## Description Reason is that users are creating several accounts and with 5 per account, they can easily get way too many custom domains for free. ## Steps for reproduction 1. click button 2. expect xyz ## Code Review - [ ] hi @kof, I need you to do - conceptual review (architecture, feature-correctness) - detailed review (read every line) - test it on preview ## Before requesting a review - [ ] made a self-review - [ ] added inline comments where things may be not obvious (the "why", not "what") ## Before merging - [ ] tested locally and on preview environment (preview dev login: 5de6) - [ ] updated [test cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md) document - [ ] added tests - [ ] if any new env variables are added, added them to `.env` file
1 parent 632a9ee commit adf473b

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

apps/builder/app/builder/shared/nano-states/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const $userPlanFeatures = atom<UserPlanFeatures>({
4242
allowShareAdminLinks: false,
4343
allowDynamicData: false,
4444
allowContactEmail: false,
45-
maxDomainsAllowedPerUser: 5,
45+
maxDomainsAllowedPerUser: 1,
4646
hasSubscription: false,
4747
hasProPlan: false,
4848
});

apps/builder/app/dashboard/dashboard.stories.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const userPlanFeatures: UserPlanFeatures = {
3333
allowShareAdminLinks: false,
3434
allowDynamicData: false,
3535
allowContactEmail: false,
36-
maxDomainsAllowedPerUser: 5,
36+
maxDomainsAllowedPerUser: 1,
3737
};
3838

3939
export const Empty: StoryFn<typeof Dashboard> = () => {
@@ -61,11 +61,7 @@ export const WithProjects: StoryFn<typeof Dashboard> = () => {
6161
isDeleted: false,
6262
isPublished: false,
6363
latestBuild: null,
64-
previewImageAsset: {
65-
id: "0",
66-
projectId: "0",
67-
name: "preview.jpg",
68-
},
64+
previewImageAsset: null,
6965
previewImageAssetId: "",
7066
latestBuildVirtual: null,
7167
marketplaceApprovalStatus: "UNLISTED" as const,

apps/builder/app/shared/db/user-plan-features.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const getUserPlanFeatures = async (
5959
allowShareAdminLinks: false,
6060
allowDynamicData: false,
6161
allowContactEmail: false,
62-
maxDomainsAllowedPerUser: 5,
62+
maxDomainsAllowedPerUser: 1,
6363
hasSubscription: false,
6464
hasProPlan: false,
6565
};

0 commit comments

Comments
 (0)