Next.js Discord

Discord Forum

Connect vercel project with subdomain example.mydomain.com

Answered
Ghost ant posted this in #help-forum
Open in Discord
Ghost antOP
Hello, I would like to connect my subdomain example.mydomain.com to my vercel project. Main domain is (mydomain.com)
Is is possible to redirect ONLY subdomain to my vercel project? Because I have another website on mydomain.com which is wordpress site and I would like to keep this site on my server but also I would like to allow users to visit my Next.js application using example.mydomain.com.
Answered by B33fb0n3
exactly! It says, that you just need to add the cname 👍
View full answer

11 Replies

yes, that's possible. You can configure it like that, that only the subdomain redirect to the vercel project. Only add the subdomain to vercel. It's free @Ghost ant
Ghost antOP
and just add CNAME to my mydomain.com?
@Ghost ant and just add CNAME to my mydomain.com?
if you enter your full subdomain you can see what you need to add to your routing
Ghost antOP
just like that?
and my website on ejnotesting.pl will work like before
exactly! It says, that you just need to add the cname 👍
Answer
Ghost antOP
well, i don't close yet because i think i did exactly the same thing at night and in the morning i couldn't connect to my wordpress site anymore (on ejnotesting.pl). I'll wait a few hours and see if the same problem happens now too
@Ghost ant well, i don't close yet because i think i did exactly the same thing at night and in the morning i couldn't connect to my wordpress site anymore (on ejnotesting.pl). I'll wait a few hours and see if the same problem happens now too
yea. Please keep in mind, that the name is before the domain name. So you might have changed the whole domain (ejnotesting.pl) to the vercel, what you don't want to.

The Name from vercel need's to be in before your domain. So like drukarnia.ejnotesting.pl on your provider side
Ghost antOP
ok everything works fine, It seems like i messed up at night 😄 Thank you!