Custom Domain
Every Typeroll site gets a free subdomain at yoursite.sites.typeroll.com. To use your own domain (e.g. acme.se), connect it in the portal and update your DNS.
-
Open the portal
Go to app.typeroll.com → your site → Settings → Domain.
-
Enter your domain
Type your domain (e.g.
acme.seorwww.acme.se) and click Connect.The portal will show you the DNS records to add.
-
Add DNS records
Log in to your DNS provider (Cloudflare, GoDaddy, Namecheap, etc.) and add the records shown. Typically:
Type Name Value CNAME @orwwwyour-project.pages.devIf your DNS provider doesn’t support CNAME on the root (
@), use an ANAME/ALIAS record instead, or point to awwwsubdomain with a redirect. -
Wait for propagation
DNS changes can take a few minutes to a few hours. The portal shows a green checkmark when the domain is verified and SSL is provisioned.
-
Redeploy
Trigger a new deploy so the
canonical_urland OG URLs in the built HTML use your custom domain:Deploy the site
Subdomain vs root domain
Section titled “Subdomain vs root domain”| Setup | Example | Notes |
|---|---|---|
| Root domain | acme.se | Requires ANAME/ALIAS or Cloudflare Proxy |
| www subdomain | www.acme.se | CNAME works everywhere |
| Subdomain | studio.acme.se | CNAME works everywhere |
For root domains with a registrar that doesn’t support ANAME/ALIAS, the easiest solution is to use www as the canonical domain and redirect acme.se → www.acme.se at the DNS level.
Sites that use www as the primary domain
Section titled “Sites that use www as the primary domain”Some sites — especially those migrated from WordPress — use www.acme.se as their canonical URL rather than the bare apex domain. Here’s how to set that up correctly.
DNS records
Section titled “DNS records”Add both records so both forms of the domain resolve:
| Type | Name | Target | Proxy |
|---|---|---|---|
| CNAME | www | your-project.pages.dev | DNS only |
| CNAME | @ | your-project.pages.dev | DNS only |
If your registrar doesn’t support CNAME on @, use an ANAME/ALIAS record there instead.
Add both domains in Cloudflare Pages
Section titled “Add both domains in Cloudflare Pages”In Cloudflare Pages → your project → Custom domains, add both:
www.acme.se(primary)acme.se(apex)
Redirect apex → www
Section titled “Redirect apex → www”Cloudflare Pages’ _redirects file only handles path-based redirects — it can’t redirect between domains. Use a Cloudflare Redirect Rule instead:
- Cloudflare Dashboard → your domain → Rules → Redirect Rules → Create rule
- Set the condition: Hostname equals
acme.se - Set the action: Redirect to
https://www.acme.se${uri.path}— status 301
This ensures visitors who land on acme.se are always sent to www.acme.se.
What you don’t need to change in Typeroll
Section titled “What you don’t need to change in Typeroll”The _redirects file Typeroll generates handles path redirects only (old slugs → new slugs). The apex → www redirect lives entirely in Cloudflare and doesn’t need any Typeroll configuration.
SSL certificates are provisioned automatically by Cloudflare Pages. No configuration needed.