Increase auto subdomain generation cardinality (#12206)

Fixes https://github.com/twentyhq/twenty/issues/12204
This commit is contained in:
Charles Bochet
2025-05-22 11:55:20 +02:00
committed by GitHub
parent 891758bb89
commit 1365c202d9

View File

@ -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)];