Comments (6)
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.
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.
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.
I mostly figured it out. Still trying to figure out how to dev with multiple sites on localhost using getStaticProps and getStaticPaths
from examples.
@JohnAllen Hi, I am stuck with something. I have created an issue on it. Could you please take a look? thanks
from examples.
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)
- NestJS/flask3 Demo URL in website is not working
- AWS DynamoDB Example is broken
- nextjs-flask example broken HOT 6
- Clarification on the "@acme-" Prefix in Multi-Zones Packages
- postgres-pgvector demo site not working HOT 1
- Web3 Authentication example is insecure HOT 1
- Next.js + Flask fails in production HOT 2
- Microfrontends example: Module not found: Can't resolve './example.module.css'
- feat(storybook): introduce to `/solution/monorepo`
- Bug: Wrong header in `https://app-dir-i18n.vercel.app/` HOT 1
- nextjs-flask: The flask api endpoint is not working. HOT 2
- Your location is undefined HOT 5
- PostgreSQL on docker and Next.js locally Error: connect ECONNREFUSED ::1:443 HOT 1
- Node.js Serverless Function template doesn't work (gives a 404) HOT 2
- Update deployment GitHub workflows
- bug
- Domain API Example broken
- Flask3 example doesn't work with additional dependencies
- Sonic example doesn't work
- https://flask2-python-template.vercel.app/ HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from examples.