Skip to content

CustomDomainPage

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/web/src/app/customdomain/[host]/page.tsx

Custom-domain entry point (docs.customer.com)

The middleware rewrites any non-Atloria host → /customdomain/{host}/* This page resolves the host to a published project via the API (only status=live domains resolve), then redirects to the existing /p/[slugId] routes which handle all the rendering — same pattern as /subdomain/[slug].

Signature

ts
async function CustomDomainPage({ params }: CustomDomainPageProps)

Parameters

NameType
{ params }CustomDomainPageProps

Was this page helpful?

Download as PDF