Hacker News new | ask | show | jobs
by solardev 664 days ago
Not sure about the SEO... probably the subdomain will get clumped under the main one or show up as a separate listing, but there's no guarantee it will show up lower in the results. It just depends on what people are searching and Google's mood that day =/ There are probably queries that will cause the side product to rank higher (which makes sense). You can also move the side product to a subfolder instead of subdomain later on and 301 the old URLs if you want to. Not sure though.

But on the Vercel side, I think you can just add them as two separate projects, one with the root/www and the other with the subdomain? https://old.reddit.com/r/nextjs/comments/itudpi/separate_app...

Why would the two sites even share the same codebase? They sound like entirely different sites anyway? If you really want them to be in the same codebase but render something different depending on the URL, maybe https://nextjs.org/docs/pages/building-your-application/depl... or https://medium.com/@jfbaraky/using-subdomains-as-paths-on-ne.... Or ask Vercel support; even on the free plan, I've found them to be pretty helpful.