Setup
Drop In One Rule
Keep Your Stack
Verify your domain, create an API key, and paste the snippet for your host. The app also has snippets for Netlify, Django and Laravel. Any failure falls through to your normal page.

Before you start
A Quick
Checklist
- 01
Your API Key
Create a key in the Render Engine app. The app shows each snippet with your key already filled in.
- 02
Every Domain
Verify each domain with one TXT record. A domain covers its www host too; other subdomains are added on their own.
- 03
HTTPS On The Site
Serve the public hostname over HTTPS from your host or CDN.
- 04
A Clean Check
Run the first command below and wait for a 200 before you send live crawler traffic.
Pick Your Stack
Each guide takes about 10 to 15 minutes.
Cloudflare Worker
The quickest route: a Worker in front of any origin.
nginx
A crawler rule inside your server block.
Apache
A crawler rule inside your virtual host.
Caddy
A crawler rule in your Caddyfile.
Next.js
Middleware for sites on Next.js and Vercel.
Express
Middleware for Node.js and Express servers.
WordPress
Install the plugin, paste your key, and crawlers get the rendered page.
Any server
The rules every snippet follows, for any stack.
Check your work
Confirm It
With One Request
Replace the example domain and API key with your own. Run the purge from your deploy script when a page changes.
# 1. Render Engine renders your page (expect 200 and an X-Render-Cache header). A check
# from your own machine cannot claim to be Googlebot: claims are verified against Google's addresses.
curl -s -o /dev/null -D - -A "LesutoRenderCheck/1.0" \
-H "X-Render-Key: YOUR_RENDER_KEY" -H "X-Render-Url: https://YOUR_DOMAIN/" \
"https://api.lesuto.com/api/v2/render-engine/render"
# 2. Your site sends crawlers the rendered page (expect lesuto:rendered, from the cache step 1 filled)
curl -s -A "Googlebot" "https://YOUR_DOMAIN/" | grep -i "lesuto:rendered"
# 3. People still get the live site
curl -s "https://YOUR_DOMAIN/" | head -n 20curl -s -X POST "https://api.lesuto.com/api/v2/render-engine/purge" \
-H "X-Render-Key: YOUR_RENDER_KEY" -H "Content-Type: application/json" \
-d '{"url": "https://YOUR_DOMAIN/products/example"}'Want A Hand
With Setup
Book a free call and we will set up Render Engine with you on your own stack.