Skip to content

CustomDomainPathPage

reference
1 min readUpdated

Kind: Function

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

Custom-domain path handler (docs.customer.com/audience/document)

Middleware rewrites docs.customer.com/developers/getting-started → /customdomain/docs.customer.com/developers/getting-started

Resolves host → slugId, then redirects to /p/[slugId]/[...path]

Signature

ts
async function CustomDomainPathPage({ params }: CustomDomainPathPageProps)

Parameters

NameType
{ params }CustomDomainPathPageProps

Was this page helpful?

Download as PDF