DNS for <%= @site.custom_domain.domain %>

  1. Go to your DNS provider’s website
  2. Create a new CNAME record for <%= @site.custom_domain.domain %>
  3. Point the record to custom.<%= base_domain() %>. (including the dot)
  4. If you're using Cloudflare, make sure to disable the orange cloud proxy:
  5. <%= img_tag(Routes.static_path(@conn, "/images/cloudflare_orange_cloud.png"), class: "w-36 my-4 inline") %> <%= img_tag(Routes.static_path(@conn, "/images/cloudflare_gray_cloud.png"), class: "w-36 my-4 inline") %>
<%= link("Done →", to: "/sites/#{URI.encode_www_form(@site.domain)}/custom-domains/snippet", class: "button w-full mt-6") %>