Switch from another prerender service
Last reviewed
If your site already sends crawlers to a prerender service, keep your middleware and change two values: the service URL to https://service.prebaked.io/ and the token to your Prebaked token. Full guide with every setup: Switch.
Steps
- Add and verify your domain. Prebaked answers 403 until it is verified.
- Copy the domain token from the Setup page. It is shown once.
- In your middleware, change the service URL to
https://service.prebaked.io/and theX-Prerender-Tokento your Prebaked token. Withprerender-nodeyou can also setPRERENDER_SERVICE_URLandPRERENDER_TOKEN. - Deploy and check that it works.
Want to compare first, with your current service still answering crawlers? Use test mode.
Recommended while you are there
- Express: add the
afterRenderfallback and the AI crawlers thatprerender-node3.8.3 does not know, see the Express guide. - nginx: the usual nginx prerender config passes service errors on to the crawler. Prebaked's config falls back to your site, see the nginx guide.
What is different
- HTTPS only. Plain
http://service calls get 403.prerender_railsdefaults tohttp://, so set thehttps://URL explicitly. - No
_escaped_fragment_URLs. - Errors: wrong token gives 401, an unverified domain gives 403.
- Empty cache at the start. The first crawler request for each page is a fresh render.
FAQ
Do I need to change my code to switch?
No, if you use prerender-node, prerender_rails, the common nginx config or an edge script that calls a prerender service. You change the service URL and the token.
Will my pages be rendered again?
Yes. Prebaked starts with an empty cache. On Growth and Pro you can warm it from your sitemap.
Can I switch back?
Yes. Your middleware stays the same, so you change the service URL and token back.
Can I test before I switch?
Yes. Shadow mode lets Prebaked render in the background while your current service keeps answering crawlers. See test mode.