Integrations
Last reviewed
An integration is the small piece in front of your site that sends crawlers to Prebaked and everyone else to your site. Pick the one that matches where your site runs. Each one is tested against a sample JavaScript app, and the code on these pages is the tested code.
Choose your integration
| Integration | What it is | Who it is for |
|---|---|---|
| Cloudflare Worker | A Worker on your domain's route. The dashboard can install it in one click. | Any site whose domain runs through Cloudflare, including site builders and hosted apps |
| Netlify Edge Function | One Edge Function on every path of your site | Sites and single-page apps hosted on Netlify |
| Vercel / Next.js middleware | Next.js middleware or Vercel Routing Middleware | Client-rendered apps hosted on Vercel |
| nginx | A copy-paste config with fallback to your site | Sites behind your own nginx, with or without an app server |
| Express (prerender-node) | The official prerender-node middleware pointed at Prebaked |
Express and Node.js apps |
| Replit | The Express integration in the Node server that serves your HTML | Replit full-stack apps on Autoscale or Reserved VM |
Already using another prerender middleware? You keep it and change the service URL and token. See switching.
What every integration does
| Request or Prebaked answer | Crawler gets |
|---|---|
| Visitor (no known crawler user agent) | your site, Prebaked is not called |
Static file (.js, .css, images, fonts), a method other than GET or HEAD, or the X-Prerender header |
your site, Prebaked is not called |
| Prebaked answers 2xx, 3xx, 404 or 410 | Prebaked's answer, with the page's own status |
| Prebaked answers 400, 401, 403, 5xx or 508, cannot be reached, or takes over 5 seconds | your site, so crawlers never see a Prebaked error |
The Express integration falls back only with the afterRender hook from its guide, and has no time limit of its own. nginx falls back on the listed errors, connection failures and its read timeout. The crawler list is on the crawlers page.
Test before you switch
Every integration has a test mode: shadow (Prebaked only gets a background copy of each crawler request), ai (Prebaked answers AI crawlers only) and all. On Cloudflare, Netlify and Vercel you can also keep your current prerender script and paste a short add-on into it. Details are in each guide.
FAQ
Which integration should I use?
If your domain runs through Cloudflare, use the Cloudflare Worker: the dashboard installs it for you. Otherwise use the one for your host or server.
Do visitors notice anything?
No. Visitors get your site as before. Only requests from known crawlers go to Prebaked.
What if my platform is not listed?
If your domain can run through Cloudflare, the Cloudflare Worker works in front of any origin.