How to use subdomains on custom domains? [Pages]

For Workers & Pages, what is the name of the domain?

genlabs.dev

What is the issue or error you’re encountering

I want to use “app.genlabs.dev” and “resources.genlabs.dev” but it’s not working!!! I need help figuring out how to do it.

What steps have you taken to resolve the issue?

I tried creating branches, but they only work on the .pages.dev url and not on .genlabs.dev

I tried creating another custom domain to app.genlabs.dev but then app.genlabs.dev points to project.pages.dev instead of app.project.pages.dev so I’m not quite sure how to make it use app..

Add the subdomains as you did – yes, they point to the main branch.

Then, go into your DNS settings, find the entry for app.genlabs.dev, edit it, and change the target to app.project.pages.dev. Ignore the warning it gives you about changing an automatic CNAME.

1 Like

TYSM! I was searching all over the place for this…

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.