Skip to main content
All CollectionsGetting StartedDomain
Configure Cloudflare for Templ
Configure Cloudflare for Templ

How to use Cloudflare with your Templ hosted website

Mattias Abrahamsson avatar
Written by Mattias Abrahamsson
Updated over 3 months ago

Templ has partnered with Cloudflare, allowing you to access Cloudflare’s features directly through Templ.

Cloudflare makes your website faster and more secure by globally caching content and protecting against threats like DDoS attacks.

Cloudflare's Automatic Platform Optimization (APO) reduces Time to First Byte (TTFB) by an average of 72% and First Contentful Paint (FCP) by 23%, providing a better user experience for your visitors. All setup is handled by Templ.

While Cloudflare's features eventually will be available in the Templ panel, you can start enjoying the benefits of Cloudflare through Templ immediately.

To enable this, we need to change your name servers and access your current DNS zone. If your domain and DNS are not already managed by Templ, we would appreciate it if you could transfer them to Templ first for a seamless experience.

Once that’s done, simply contact our support team by clicking the chat icon in the lower right corner of this page to get started.

It’s free of charge to use Cloudflare with Templ; however, please note that some Cloudflare products, such as Automatic Platform Optimization (APO) or other specific features, may incur additional costs.

Did this answer your question?