Adding support for custom css per domain?
Root layout is in the app folder and there's no access to head in the domain level even though for all matters it should be the root layer.
@steven-tey this is such a basic functionality that couldn't find any solution for... wasted tens of hours on this... normally you would just edit the root layout but you can't include domain specific data in the root layout because domain is subfolder...
also can't revalidate cache on single domain...
Hey @iamkoby have you find any solution for this ?
👋 We've updated this repo to have a more simplified example + a new guide:
- https://github.com/vercel/platforms/pull/451
- https://vercel.com/guides/nextjs-multi-tenant-application
Should be able to fetch your CSS and then conditionally render it in the <head> of a client or server component. You don't need to use the metadata API, though it does give you type safety https://x.com/leerob/status/1778179677829451884