Skip to content

Instantly share code, notes, and snippets.

@ahmadawais
Created June 18, 2019 04:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmadawais/c29260da15211dda2e2fa48e8e3bcc43 to your computer and use it in GitHub Desktop.
Save ahmadawais/c29260da15211dda2e2fa48e8e3bcc43 to your computer and use it in GitHub Desktop.
Add Sub Domain on Zeit Now as an Alias


Add Sub Domain on Zeit Now as an Alias

Follow the steps below

  1. Create a now.json file in the root
  2. Add "alias": ["sub.domain.tld"] to the now.json file
  3. Test running now --target staging or now alias alias_you_have.now.sh sub.domain.tld
  4. From the provided options add the "_now" TXT record with the string value "d7054dfebc7b21..." to your subdomain in the domain dashboard — wherever you host your domain
  5. Add two CNAME records with your subdomain i.e sub and www.sub that point to "alias.zeit.co"
  6. Wait and try test running now --target staging or now alias alias_you_have.now.sh sub.domain.tld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment