How host 1 react app on main domain and subdomain a gatsby blog app?

Same as the title. I use netlify dns and want to host my app on primary domain eg example.com and blog at blog.example.com .

Any help would be appreciated thanks.

Hi, @RizeXor, and welcome our Netlify community site.

First, create the two sites. Then add the custom domain you want to use at “Site Name” > Settings > Domain management > Custom domains for each site.This should be all that is required.

Note, using the apex/bare domain (example.com) for a site will automatically assign the www subdomain to that site also. If this isn’t what you want, please let us know here and one of our support team can make only the apex/root domain required.

If there are other questions about this, please let us know.