This example demonstrates how to use multi-tenancy combined with localization in a single Next.js app powered by Payload.
The app is setup to support 3 different custom domains: gold.localhost, silver.localhost or bronze.localhost.
Each domain will be parsed to identify the correct tenant and load the relevant localized content.
rewrites allows the tenant from the request's host header to be extracted and transformed internally to a /tenant/locale/path structure./app/[tenant]/[locale]/[...slug]For a detailed breakdown of the code and setup, checkout the full README in the example root folder.