1 year ago

Heroku Domain and Sub Domain Trouble

Posted 1 year ago by joshgallagher24

Hello all,

I am setting up a site which has a Lumen API and Vue SPA - these are both hosted on Heroku.

(I am using Namecheap)

I have the domain - I want to map my SPA to and have my API map to

For my Vue SPA I give it these details:

Domain name: DNS Target:

For my Lumen API I give it these details:

Domain name: DNS Target:

On Namecheap I have a URL Redirect Record with these details:

Host: @ Value: unmasked

Then I have CNAME record with these details:

Host: www Value: TTL: auto

At this point, my Vue SPA points to this domain.

However, When I add my Lumen API CNAME record my API does not point to

These are the CNAME record details:

Host: api Value: TTL: auto

Can someone tell me why I can not get this working? Is it a limitation? Is there a work around?

I'm new to DNS stuff!

Thanks in advance

Please sign in or create an account to participate in this conversation.