Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
318 views
in Technique[技术] by (71.8m points)

web - NextJS and Vercel CNAME for www domain

I have finished my web page in NextJS, pushed to GitHub and from there deployed the project via Vercel. I have set up custom domain DNS - added the required A record - and set in Vercel to use this domain. Everything works well, just a small thing going wrong. Whenever I try to access my domain like this example.com or https://example.com there are no issues, only problem appears when I try to access it like www.example.com - with the "www".

What would be the solution for this? When using ReactJS with GitHub pages I had to add CNAME into my domain DNS settings, do I have to do something similar now?

Thank you.

question from:https://stackoverflow.com/questions/65946976/nextjs-and-vercel-cname-for-www-domain

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...