How to add PWA Custom Domain?

Notes:

  • You must have to create CNAME record in your domain DNS that points to your Siberian URL.
  • Your custom domain/sub-domain (that you are going to use) should have a SSL certificate. If not then PWA functionality won’t work. Suppose you want to add pwa.example.com as custom PWA domain then your pwa.example.com must have a SSL certificate. (Note that if example.com has a SSL, but pwa.example.com doesn’t have a SSL then it won’t work.) You can use cloudflare (with proxy) or Wildcard SSL certificate for this.
  • Don’t mix domain with your Web App and PWA. Suppose you already used demo.example.com for your WebApp then don’t use this demo.example.com domain for your PWA. You must have to use other domain like pwa.example.com for your PWA.

We have to activate it manually, so you must send us an email at zerocodesco@gmail.com with the following data:

  • Account email
  • App name
  • Your custom domain

FAQs:

(1) Can I use main domain as Custom Domain instead of a sub-domain?

Yes you can but in this case you have to use www in CNAME record instead of a sub-domain.

(2) Cloudflare works?

Yes cloudflare works (with proxy) and we recommend to use only cloudflare for PWA custom domain. Sometimes you will get an error like too many redirections (that’s because of you have force redirected http to https on your Siberian) then try to change your SSL encryption mode in cloudflare from Flexible to full or disable force redirection of http to https on your Siberian.

(3) Can I link custom domain without cloudflare?

Yes you can but your domain should have SSL certificate as said in above notes. If you can manage SSL yourself then you can use it but we recommend only Cloudflare.

Related Articles