Quick fix to restore the 404 page

This commit is contained in:
Mike Dalessio
2025-03-20 10:58:44 -04:00
parent f46bc97674
commit 743597d059
+1 -1
View File
@@ -3,7 +3,7 @@ Rails.application.config.after_initialize do
# in production, we're using a two-level subdomain like "tenant.fizzy.37signals.com", but in
# development and beta it's only a single-level subdomain.
tld_length = request.domain == "37signals.com" ? 2 : 1
request.subdomain(tld_length)
request.subdomain(tld_length).presence || "no-such-tenant-exists" # this is a quick fix for now
end
end