June 12, 2021 1 min read 294 words

Setup your app on Google Domains with Layer0

So recently, I bought rishi.app with Google Domains (opens in a new tab), and it was super easy to get my portfolio (opens in a new tab) to production with Layer0 (opens in a new tab) as the developer-first deployment platform, and obviously Next.js (opens in a new tab) the #1 react framework (well for me)!

Why Layer0 for deployment?

Why Next.js as my #1 React Framework?

  • Incremental Static Regeneration, Pre-Rendering, Server Side Rendering (SSR): The performance-first configurations integrated intuitively. Read More On https://nextjs.org/docs/basic-features/data-fetching
  • Automatic code splitting: The best automatic code splitting (opens in a new tab) till date.
  • Hot Module Replacement (HMR): A fast refresh 100ms faster (opens in a new tab) than fast refresh itself.

Configuring Google Domains with Layer0

Steps on Google Domains

  1. Add a synthetic record for subdomain forwarding: Synthetic record for subdomain forwarding in Google Domains

  2. Add custom resource records for automatic TLS certification and hosting it on the apex domain: Custom resource records in Google Domains

Steps on Layer0

  1. Deploy Your App (Or deploy an example Deploy To Layer0 (opens in a new tab))

  2. Add domain in the settings tab of your project Adding a domain in the Layer0 project settings

  3. Configure TLS As you've already added the custom resource records, just click on Generate SSL Generating an SSL certificate in Layer0

All set ๐Ÿš€. Feel the speed now ๐ŸŽ. Feel free to drop any feedback in comments!

Thanks for reading

If this was useful, sharing it on X helps a lot. Spotted a typo or want to push back? DM me.

More posts

1 post