From 1365c202d9377be7d9c4a6eced31bef218dffadb Mon Sep 17 00:00:00 2001 From: Charles Bochet Date: Thu, 22 May 2025 11:55:20 +0200 Subject: [PATCH] Increase auto subdomain generation cardinality (#12206) Fixes https://github.com/twentyhq/twenty/issues/12204 --- .../utils/generate-random-subdomain.ts | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/packages/twenty-server/src/engine/core-modules/domain-manager/utils/generate-random-subdomain.ts b/packages/twenty-server/src/engine/core-modules/domain-manager/utils/generate-random-subdomain.ts index fe1e00486..765b770a1 100644 --- a/packages/twenty-server/src/engine/core-modules/domain-manager/utils/generate-random-subdomain.ts +++ b/packages/twenty-server/src/engine/core-modules/domain-manager/utils/generate-random-subdomain.ts @@ -30,6 +30,31 @@ export const generateRandomSubdomain = () => { 'wise', 'witty', 'zany', + 'agile', + 'amazing', + 'awesome', + 'brilliant', + 'cheerful', + 'dashing', + 'dynamic', + 'elegant', + 'energetic', + 'excellent', + 'fantastic', + 'friendly', + 'glorious', + 'grand', + 'helpful', + 'honest', + 'innovative', + 'inspiring', + 'jolly', + 'lively', + 'magical', + 'optimistic', + 'peaceful', + 'powerful', + 'radiant', ]; const suffixes = [ 'bear', @@ -62,6 +87,26 @@ export const generateRandomSubdomain = () => { 'tiger', 'whale', 'wolf', + 'antelope', + 'badger', + 'buffalo', + 'camel', + 'cheetah', + 'deer', + 'dragon', + 'gazelle', + 'gorilla', + 'hippo', + 'jaguar', + 'lemur', + 'leopard', + 'llama', + 'meerkat', + 'otter', + 'peacock', + 'phoenix', + 'rhino', + 'zebra', ]; const colors = [ @@ -95,6 +140,26 @@ export const generateRandomSubdomain = () => { 'violet', 'white', 'yellow', + 'aqua', + 'bronze', + 'burgundy', + 'cerulean', + 'charcoal', + 'coral', + 'emerald', + 'fuchsia', + 'garnet', + 'jade', + 'lavender', + 'mauve', + 'navy', + 'olive', + 'platinum', + 'plum', + 'rose', + 'ruby', + 'sapphire', + 'scarlet', ]; const randomPrefix = prefixes[Math.floor(Math.random() * prefixes.length)];