Coder Social home page Coder Social logo

Comments (6)

steven-tey avatar steven-tey commented on April 28, 2024 1

Hey @JohnAllen! Steven here, creator of the hostname rewrites example! What do you mean by "I just want multiple root/main/host names that are related, but different"?

To clarify, the ROOT_URL is basically the URL that you want to use for all your subdomains. For example, take Substack as an example – substack.com is the ROOT_URL and that will be used for all the subdomains that users get (steven.substack.com, john.substack.com)

from examples.

JohnAllen avatar JohnAllen commented on April 28, 2024

There's also this line in the README:

Do note that you will need to replace the ROOT_URL variable in the .env.example file with your domain of choice and add that domain as a wildcard domain your Vercel project.

from examples.

JohnAllen avatar JohnAllen commented on April 28, 2024

Thanks for the response @steven-tey!

I want to have multiple domains/hostnames use the same codebase, essentially. Similar sites sharing code but are different, mostly for geographic & SEO purposes. So I do not want many subdomains. I want many hostnames. I am wondering if this host-rewrites approach is the best way to do it and what alternatives there are.

I get the "platform" example like Substack. Instead I want to have many hostnames and not subdomains. I know I can sort of hack the i18n feature of Next/Vercel, just wondering the other ways to accomplish my goal before I write much code :)

from examples.

JohnAllen avatar JohnAllen commented on April 28, 2024

I mostly figured it out. Still trying to figure out how to dev with multiple sites on localhost using getStaticProps and getStaticPaths

from examples.

moinulmoin avatar moinulmoin commented on April 28, 2024

@JohnAllen Hi, I am stuck with something. I have created an issue on it. Could you please take a look? thanks

from examples.

webberwang avatar webberwang commented on April 28, 2024

For https://custom-domain-1.com/ mapping to https://subdomain-1.vercel.sh/

what does the owner of https://custom-domain-1.com/ have to change in terms of DNS records to point to subdomain-1.vercel.sh?

from examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.