How can I run static + dynamic site under same domain?

I am trying/figuring out, how to run a static site (SSG) + dynamic app (using Next.js SSR) serve pages under same domain. For example Static site Hosted on Cloudflare pages * / * /pricing * /features * /contact * /help Dynamic site Currently hosted elsewhere * / (if auth cookie is present show the dynamic site with user logged-in) * /settings (if auth cookie is present) * /<username> How can I merge both the sites together to be severed from single domain?
2 Replies
JustinNoel
JustinNoel17mo ago
Subdomain for the dynamic site is the only way I think this can work.
Yashu
YashuOP17mo ago
Using sub-domains would not be feasible from SEO prospective. It should be under the same domain
Want results from more Discord servers?
Add your server