Prerender can work with Salesforce B2C Commerce. For PWA Kit Composable Storefront on Managed Runtime, an external Cloudflare CDN is a potential connection. Your implementation team must validate the routing and hosting configuration before deployment.
This page focuses on Salesforce B2C Commerce, part of Salesforce Commerce Cloud. Salesforce Experience Cloud is a separate product and requires its own compatibility assessment. Commerce LWR stores have different hosting restrictions and cannot use the external-CDN route described here.
| Your setup | Prerender compatibility |
| --- | ------ |
| PWA Kit Composable Storefront on Managed Runtime, with an external Cloudflare CDN you can configure | Conditional connection using Prerender’s documented Cloudflare Worker. Confirm Salesforce origin routing and test the complete deployment. |
| PWA Kit using only the Managed Runtime CDN or Salesforce B2C Commerce eCDN | Requires technical assessment. Access to Salesforce CDN settings does not establish access to the routing controls Prerender needs. |
| PWA Kit with access to its Express application code | Candidate middleware route requiring assessment of Managed Runtime caching, middleware placement, and rendering-request handling. |
| B2C Commerce SFRA storefront | Assess the returned HTML first. SFRA renders ISML templates on the server; any additional rendering need depends on storefront customizations. A connection still requires an appropriate routing layer. |
| Experience Cloud Aura, LWR, or Visualforce site | Separate assessment required. Salesforce documents third-party custom-domain options, but the exact template, hosting configuration, public access, and routing controls determine the available route. |
| Commerce LWR store | The external-CDN route described here does not apply. Salesforce prohibits external CDNs for Commerce LWR sites. |
Salesforce documents SFRA template rendering, third-party custom-domain hosting for Experience Cloud, and the external-CDN restriction for Commerce LWR.
A customized storefront can load descriptions, navigation, or metadata through JavaScript after its initial HTML response. If that content is missing from the response, a crawler that does not execute the required JavaScript can receive an incomplete page. This JavaScript SEO gap affects machine experience: how machines see, understand, and interact with your brand, starting with the content returned for a requested URL.
Prerender executes the page’s JavaScript and caches the rendered HTML. A configured routing layer sends matching crawler requests to Prerender and returns that HTML, allowing machines to read the rendered content without performing JavaScript rendering themselves. Learn how Prerender renders and caches pages. Prerendering does not guarantee indexing, rankings, or citations.
Test representative public product, category, and content URLs before choosing a connection. PWA Kit already uses server-side rendering for initial page requests. Identify which essential content, if any, remains absent from the returned HTML. See how PWA Kit renders storefront pages.
For the external Cloudflare route, you need:
Confirm that your team has the Account Manager and project permissions needed to configure the environment.
Have your implementation team configure and verify the normal storefront path through Cloudflare before adding crawler routing.
Salesforce’s external-CDN guidance calls for an x-forwarded-host header on requests sent to the Managed Runtime origin, appropriate TLS certificates, and correct storefront URL construction. Follow Salesforce’s guidance on CDN options for PWA Kit.
Confirm that storefront pages, assets, redirects, and locale URLs work through the public domain.
Follow how to configure Prerender through Cloudflare Workers, using the Worker source linked from that guide. Disable Automatic Signed Exchanges in Cloudflare before activating the Prerender connection.
| Configuration | What to set |
| --- | ------ |
| Domain proxy status | Proxied. DNS-only traffic bypasses the Worker. |
| Worker route | The intended public storefront hostname and paths, such as www.example.com/*. |
| PRERENDER_TOKEN | Your Prerender token, supplied through the Worker’s environment configuration. |
| Failure mode | Fail open, as specified in the guide. |
| Deployment | Deploy the Worker after configuring its route and token. |
The Worker forwards matching requests to Prerender and passes other requests through to the storefront. Review existing Workers and routing rules before activation.
Open the deployed Prerender Worker and inspect its BOT_AGENTS array. This is the active user-agent matching list for this connection. Check for the crawler matches you intend to serve, including googlebot, gptbot, claudebot, and perplexitybot.
The current Worker source contains these entries, but an older or customized deployment may differ. Add missing entries to the existing array, retain the entries you still need, and redeploy. Follow how to inspect and extend crawler user-agent routing on Prerender.
Also check that firewall and bot-protection rules permit the intended requests to reach the Worker and allow Prerender to fetch the storefront. A routing-list entry cannot overcome an earlier access block.
Test each intended crawler separately. A successful Googlebot request does not establish that GPTBot, ClaudeBot, or PerplexityBot receives rendered HTML.
After confirming that googlebot is in the deployed routing list, request a public storefront URL:
curl -i -A "Googlebot" "https://www.example.com/product/example"Replace the example with a real product or category URL. Check that:
Follow Prerender’s verification instructions. Repeat the request with each other configured crawler user agent and test representative locales and page types.
A simulated user agent tests the matching rule. It does not prove that a real crawler’s network request will pass every security control.
Host matches the environment’s External Hostname. Review this alongside the external CDN’s forwarded-host configuration.Review Managed Runtime constraints with your implementation team.
Need help confirming Prerender and Salesforce compatibility or choosing a connection? Contact Prerender support. The team can assess the proposed connection, identify any required setup, and help verify what crawlers receive.
You may be able to use Prerender with Salesforce Experience Cloud, subject to a compatibility assessment. Salesforce documents third-party custom-domain hosting for Aura, LWR, and Visualforce sites, but each deployment needs a validated Prerender connection. Confirm your site template, hosting service, guest access, and control over public request routing before choosing a connection.
Salesforce Commerce LWR stores cannot connect to Prerender through the proposed external Cloudflare CDN route because Salesforce prohibits external CDNs for Commerce LWR sites. Ask Prerender support to assess your Commerce LWR deployment before choosing an alternative connection.
Installing Prerender’s Express middleware in Salesforce Managed Runtime requires a technical assessment of your PWA Kit deployment. PWA Kit defines its Express server in app/ssr.js, and developers can deploy code changes through application bundles. Your implementation team must verify middleware placement and whether CDN caching prevents eligible crawler requests from reaching Express. Prerender’s generic Express installation guide does not confirm compatibility with Managed Runtime.
You can use Prerender without rebuilding your Salesforce B2C Commerce storefront when a compatible routing layer can send eligible crawler requests to Prerender. An external-CDN connection operates in front of your storefront, allowing you to retain your frontend and commerce backend. Your implementation team must confirm routing access and test the connection before deployment.
Salesforce PWA Kit Composable Storefront may not need prerendering if its server-rendered HTML already contains the essential content crawlers need. Test representative product, category, and content pages, including customized components. Additional rendering should address an identified gap, such as product descriptions or navigation links that appear only after JavaScript executes.
Need help confirming Prerender and Salesforce compatibility or choosing a connection? Contact Prerender support. The team can assess the proposed connection, identify any required setup, and help verify what crawlers receive.