Prerender works with SAP Commerce Cloud’s composable storefront, formerly Spartacus, through Express middleware on a storefront server your team can configure, or through a suitable CDN or reverse-proxy connection. This page focuses on the Express connection, with Cloudflare as an alternative. The available route requires assessment of your hosting configuration and routing access.
Once configured, Prerender serves rendered HTML to matching crawlers, making JavaScript-generated storefront content readable without those crawlers executing JavaScript themselves.
| Your setup | Prerender compatibility |
| --- | ------ |
| Independently hosted composable storefront with control of the Express handler serving public pages | Candidate for Prerender’s documented Express connection. Confirm middleware access, package compatibility, and the complete request path. |
| Composable storefront with SSR enabled in SAP Commerce Cloud hosting | Requires technical assessment. Confirm the deployed server entry point, bundled dependencies, build permissions, and upstream cache behavior. |
| Client-side composable storefront served as static files | Express middleware cannot be installed in the browser application. A configurable frontend server or CDN is required. |
| Independently hosted storefront already behind a customer-controlled Cloudflare proxy | Candidate for Prerender’s documented Cloudflare Worker connection, provided the host permits that proxy arrangement and the team controls Worker deployment. |
| SAP-managed or partner hosting without confirmed server or CDN routing access | Requires technical assessment. Access to hosting settings does not establish the controls needed to route crawler requests. |
| Storefront already returning essential content through SSR | Assess the HTML first. Additional rendering may be unnecessary. |
| Accelerator or another custom storefront using SAP Commerce Cloud | Assess separately. The composable storefront procedure does not establish compatibility for another architecture. |
A client-rendered storefront can load product descriptions, category links, or metadata after the initial HTML response. A crawler that does not execute the required JavaScript may receive an incomplete page. This affects machine experience: the content machines can read from a requested storefront URL.
Prerender renders the page in a browser, caches the resulting HTML, and returns it through your configured routing layer. Matching crawlers can read that content without rendering the JavaScript themselves. Learn how Prerender renders and caches pages. Rendered HTML does not guarantee indexing, rankings, or citations.
Inspect the initial HTML for representative public product, category, and content URLs. Identify essential content that is missing before adding another rendering service.
Composable storefront supports SSR, so JavaScript use alone does not establish a rendering gap. SAP also describes how client rendering and SSR affect the returned HTML.
For an Express connection, confirm that your team can:
An Express server handling only API requests is insufficient. Installing a package in the Angular browser application does not create a server connection.
Independently hosted Express storefront: Use the Express route when your team controls the deployed handler and its request path.
SAP-hosted storefront: Have your implementation team confirm the active SSR build, entry point, dependency packaging, and deployment permissions. Follow SAP’s SSR hosting configuration. Enabling SSR does not, by itself, validate Prerender middleware.
Customer-controlled Cloudflare proxy: If the hosting arrangement permits it, an independently hosted storefront can use the Cloudflare Worker installation guide. This requires proxied storefront traffic and permission to deploy a Worker. It is a separate connection with its own crawler configuration. Disable Automatic Signed Exchanges in Cloudflare before activating the Prerender connection.
Using a managed CDN does not establish permission to deploy custom routing code. If access is unclear, request an assessment before choosing a connection.
For an approved Express deployment, follow the Node.js and Express installation guide.
Install the server dependency:
npm install prerender-node --saveRegister the middleware before storefront response handlers. The guide supports reading the token from an environment variable:
app.use(
require('prerender-node')
.set('prerenderToken', process.env.PRERENDER_TOKEN)
);
This belongs in the actual Express application. Adapt the module syntax to the deployed server build and confirm compatibility before release.
Build and redeploy through your hosting environment’s normal process. For SAP-managed hosting, a local server restart does not deploy the change.
Check the CDN and reverse proxy before testing. A cached response may be returned before Express runs. Review cache rules so shopper responses do not bypass the intended crawler handling or get mixed with crawler responses. Preserve the middleware’s rendering-request bypass to avoid routing Prerender’s own fetch back into Prerender.
Record the installed prerender-node version from the deployed dependency tree and lockfile. Inspect node_modules/prerender-node/index.js, particularly prerender.crawlerUserAgents, then review application code for overrides.
Check the effective list for:
googlebotgptbotclaudebotperplexitybotThe current upstream source contains these matches; older or customized deployments may differ.
For versions after v3.8.2, use addUserAgents(...) to append missing matches while retaining the existing list. For versions without that method, set('crawlerUserAgents', [...]) replaces the entire list: preserve every existing match you still need when adding entries. Make changes in application configuration, rather than editing installed package files.
Follow the additional crawler configuration guide, then rebuild and redeploy. Also check firewall and bot-protection rules: a matching user agent cannot overcome an earlier access block.
Test each crawler separately. A successful Googlebot request does not prove GPTBot, ClaudeBot, or PerplexityBot is routed correctly.
After confirming the deployed Googlebot match, request a real public product or category URL:
curl -i -A "Googlebot" "https://www.example.com/product/example"Check that:
x-prerender-request-id.Follow Prerender’s verification instructions. Repeat with GPTBot, ClaudeBot, and PerplexityBot, plus representative page types and locales. Test both fresh and cached requests through the public domain.
The response header establishes Prerender handling; inspect the body to establish content completeness. A simulated user agent tests routing behavior, but does not prove a real crawler’s network request passes every security control.
Need help confirming Prerender and SAP 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.
SAP Commerce Cloud’s composable storefront, formerly Spartacus, can use Prerender when a suitable server or CDN connection is available. An Express connection requires control of the handler serving public storefront pages. Client-side deployments need a configurable frontend server or CDN. SAP-hosted deployments, Accelerator storefronts, and custom storefronts require assessment of their hosting and routing configuration.
Installing Prerender’s Express middleware in SAP-hosted composable storefront may be possible if your team can edit the deployed Express handler, bundle the prerender-node dependency, and deploy the changed server application. Crawler requests must reach the middleware before another handler or upstream cache returns a response. SAP-hosted SSR support alone does not confirm middleware compatibility.
SAP composable storefront may not need Prerender if SSR already returns the essential content crawlers need. Inspect the initial HTML for representative product, category, and content URLs. If essential content is missing, investigate the cause and verify that Prerender can render the affected pages before choosing a connection.
Prerender connects to the server or CDN handling public storefront page requests. During rendering, the storefront continues retrieving commerce data through SAP’s OCC APIs. Failed or restricted OCC requests can leave the rendered HTML incomplete.
A CDN cache can prevent crawler requests from reaching Prerender middleware by returning cached HTML before the requests reach Express. Review the CDN’s cache and routing rules, then test fresh and cached responses through the public storefront domain. Confirm that Prerender handles the intended crawler requests and that the returned HTML contains essential page content.
Verify Prerender across SAP base sites, languages, and currencies by requesting representative public URLs for each combination crawlers should access. Confirm Prerender handling and inspect the returned HTML for the expected catalog content, language, currency, and canonical URL. Where cookies or redirects determine storefront context, test without a shopper’s existing session. Repeat the checks for each configured crawler user agent.