fix(tenant): fallback pra default slug em dominios .vercel.app
Vercel preview deployments tem hostname tipo reserva-chatmotel-xxx.vercel.app que era interpretado como slug de tenant, causando 'tenant nao encontrado'. Agora qualquer host .vercel.app cai no VITE_DEFAULT_TENANT_SLUG, igual ngrok. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
396638323b
commit
22e623fa3f
@ -16,7 +16,12 @@ export function resolveTenantSlug(): string {
|
||||
return defaultSlug
|
||||
}
|
||||
|
||||
if (host.endsWith('.trycloudflare.com') || host.endsWith('.loca.lt') || host.endsWith('.ngrok-free.dev')) {
|
||||
if (
|
||||
host.endsWith('.trycloudflare.com') ||
|
||||
host.endsWith('.loca.lt') ||
|
||||
host.endsWith('.ngrok-free.dev') ||
|
||||
host.endsWith('.vercel.app')
|
||||
) {
|
||||
return defaultSlug
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user