Prerender for Headless BigCommerce

Does Prerender work with BigCommerce?

Prerender works with eligible headless BigCommerce storefronts when a configurable frontend server, reverse proxy, or CDN can route crawler requests and the public pages are accessible for rendering. That connection sends eligible crawler requests to Prerender’s service; storefronts already returning essential HTML may gain no additional rendering benefit. Managed hosting requires confirmation from the frontend provider that the proposed routing is supported.

Prerender and BigCommerce compatibility at a glance

| Your setup | Prerender compatibility |

| --- | ------ |

| Custom headless storefront behind customer-controlled Cloudflare | Candidate for the Worker connection below, subject to frontend-host permission, public rendering access, and a demonstrated rendering gap. |

| Custom headless storefront behind an editable server or reverse proxy | Assess the documented connection for the component receiving public page requests. BigCommerce API access alone is insufficient. |

| Catalyst hosted externally | Assess the actual host, returned HTML, and permitted routing layer. Catalyst’s Next.js architecture does not automatically require Prerender or provide an Express connection. |

| Catalyst on BigCommerce Storefront Hosting | Requires confirmation from BigCommerce for the proposed external crawler-routing arrangement. Built-in Cloudflare infrastructure does not itself grant customer Worker administration access. |

| Managed frontend with restricted server, CDN, or proxy access | Requires confirmation from the frontend provider that a suitable connection is available and permitted. |

| BigCommerce-hosted Stencil storefront | Inspect its existing server-rendered HTML first. Theme or Script Manager access does not establish control over public request routing. |

| Frontend already supplying essential HTML through server rendering or static generation | May need no additional rendering. Check representative product, category, and localized responses before proceeding. |

How Prerender supports ‘machine experience’

A customized storefront may load product descriptions, category links, headings, or metadata only after JavaScript runs. Missing content can affect machine experience: what machines receive when requesting the storefront. Stencil already uses server-rendered templates, and Catalyst or custom frontends may also return essential HTML; JavaScript use alone does not establish a gap.

Prerender renders accessible pages and caches the resulting HTML. In the Cloudflare example below, a Worker routes eligible crawler requests to Prerender’s service and returns rendered HTML, while shoppers continue to the frontend through the normal delivery path. Learn more about how Prerender renders and caches pages.

How to connect Prerender to headless BigCommerce

1. Choose the connection for your storefront and host

Trace the request for a public product or category URL from its hostname to the frontend. Identify who controls each server, CDN, and proxy along that path. Access to BigCommerce administration, commerce APIs, theme files, or Script Manager does not establish permission to change that path.

Start by requesting representative pages without executing JavaScript. If product content, navigation, headings, metadata, canonical URLs, and relevant structured data are already present, Prerender may provide no additional rendering benefit.

Choose the connection for the component handling public pages:

  • Cloudflare Worker: Use the example below when you control the frontend’s Cloudflare zone, can deploy Workers, and the frontend host permits proxying and external crawler routing.
  • Nginx or Apache: Assess the matching server connection when you can edit and deploy the public frontend’s reverse-proxy configuration.
  • Express: Assess the Node.js connection only when an editable Express server actually receives public page requests.
  • Restricted managed hosting: Ask the provider to identify a permitted connection before proceeding.

Use the Prerender supported connections overview to select the installation guidance for that component.

2. Configure the assessed Cloudflare Worker connection

This example covers a custom headless BigCommerce frontend on a customer-controlled HTTPS origin, behind a customer-controlled Cloudflare zone. BigCommerce supplies commerce data to the frontend. The example does not establish the same configuration for Stencil, Storefront Hosting, or Vercel.

Before configuration, confirm:

  • The frontend host permits Cloudflare proxying and requests routed through Prerender.
  • You have DNS and Worker administration access.
  • Prerender can load the public frontend, scripts, styles, images, and required public data.
  • Eligible URLs return a consistent public storefront context without requiring a customer login.

Follow the Prerender Cloudflare Worker installation guide, with these storefront-specific checks:

  1. Confirm the existing origin mapping. Record the public hostname and the frontend host’s actual DNS target. Check origin hostname, TLS/SNI, Host, and forwarded headers. Use the frontend provider’s values; do not substitute a BigCommerce commerce-API or checkout hostname.
  2. Enable the approved proxy path. The frontend DNS record must be proxied through Cloudflare for this route-based connection. Validate HTTPS on both connections, including the origin certificate and hostname. Disable Automatic Signed Exchanges in Cloudflare before activating the Prerender connection.
  3. Create the Worker from the guide’s linked source. Set PRERENDER_TOKEN in the Worker environment and keep the token out of browser code.
  4. Restrict rendering before activation. Add an application-specific guard so only approved, anonymous public product and category GET requests can reach the rendering branch. Build the allowlist from the storefront’s actual routes; BigCommerce does not require every headless frontend to use the same URL prefixes.
  5. Exclude non-public traffic. Keep commerce APIs, GraphQL endpoints, administration, authentication, previews, account, cart, checkout, session-sync, and other private or transactional routes outside rendering. Reject preview/session parameters and authenticated requests from rendering eligibility. Customize the Worker to enforce these exclusions and prevent customer credentials from being forwarded to Prerender.
  6. Attach exact frontend-hostname routes. Configure each intended hostname separately and check more-specific competing routes. Leave checkout hostnames outside the Worker’s scope. Cloudflare documents how Worker routes attach to proxied hostnames.
  7. Review delivery controls and deploy. Check redirects, asset delivery, cache rules, firewall rules, bot protection, and rule ordering. Save the token and routing settings, deploy the reviewed Worker, and verify before expanding traffic.

Retain the source’s rendering-request bypass, static-file exclusions, and fail-open behavior. The Worker submits the public request URL for rendering; check that its hostname, path, approved query parameters, channel, language, and currency identify the intended public page.

For this example, keep shared HTML caches from answering eligible requests before routing or mixing shopper, crawler, and rendering-bypass responses. Do not rely on cookies alone to distinguish cached language or currency variants. If public variants cannot be represented reliably in the rendering and cache design, exclude those routes until the design is resolved.

3. Inspect and extend crawler coverage

Inspect BOT_AGENTS in the deployed Worker. The Prerender Cloudflare Worker source code uses case-insensitive substring matching and contains all four entries below.

| Crawler | Match to check|

| --- | ------ |

| Googlebot | googlebot |

| GPTBot | gptbot |

| ClaudeBot | claudebot |

| PerplexityBot | perplexitybot |

Your deployed copy may differ from upstream. Append missing entries to the existing BOT_AGENTS array rather than replacing its other entries. Save and redeploy the Worker; test each crawler separately. Learn more about how to add crawlers to Prerender connections.

Preserve the X-Prerender bypass and IGNORE_EXTENSIONS checks. Keep the catalog-route guard when updating the source. Rendering fetches must reach the frontend without being sent back to Prerender recursively.

Review earlier firewall rules, AI crawler controls, bot challenges, rate limits, and caches. Adding a user-agent match does not override a block elsewhere in the request path.

How to verify what crawlers receive

Make a GET request to an approved public product URL:

curl -i -A "Googlebot" \
  "https://shop.example.com/products/example-product"

Replace the example with your actual frontend URL. The command retrieves response headers and the HTML body.

Check handling and content together:

  • Look for the x-prerender-request-id response header and the corresponding request in CDN Analytics, as described in the Prerender connection verification guide.
  • Inspect product descriptions or category content, headings, product/category links, title, description, canonical URL, and relevant structured data.
  • Confirm the correct storefront/channel, language, and currency.
  • Inspect status codes and redirect destinations. Test redirected URLs separately; a successful status alone does not establish complete HTML.
  • Test a fresh or refreshed render and a subsequent cached response. Confirm both contain the expected public content.
  • Update a product or category, refresh the necessary frontend caches, and verify that a refreshed Prerender response contains the change.

Repeat the request with GPTBot, ClaudeBot, and PerplexityBot. Googlebot coverage does not establish coverage for the other crawlers.

Test a normal shopper user agent and confirm normal frontend delivery. Then test the same public URL with a crawler user agent and X-Prerender: 1; Worker and origin logs should show bypass delivery without another request to Prerender. Confirm that outer caches do not mask this behavior.

Test excluded account, cart, checkout, API, authentication, and preview routes. Confirm they do not reach Prerender or create rendered cache entries.

Simulated user agents verify routing conditions. Review real crawler traffic where available to confirm that actual requests also pass IP-based checks and other security controls.

Requirements and limitations

  • Permitted routing: Control over the public frontend’s connection point and permission from the affected hosting providers are required.
  • Reachable dependencies: Prerender must be able to fetch the public page and everything needed to render its essential content.
  • Correct storefront context: Preserve channel, locale, currency, canonical URL, redirects, and assets throughout the request and cache flow.
  • Public content only: Keep credentials, personalized content, previews, private pages, and transactions outside rendering.
  • Coordinated caching: BigCommerce data, frontend, CDN, and Prerender caches may refresh independently. A product update does not automatically prove that rendered HTML is current.
  • A demonstrated rendering gap: Existing server rendering or static generation may already provide the required HTML.
  • Crawler access: Prerender does not override crawler restrictions or guarantee indexing, rankings, or AI citations.

BigCommerce for WordPress and legacy Blueprint storefronts require separate rendering and hosting assessments; this headless procedure does not establish their connection.

For blocked requests, routing failures, or incomplete HTML, use the Prerender connection troubleshooting guide.

Get help with your Prerender and BigCommerce setup

Prerender support can help assess whether your BigCommerce storefront needs additional rendering, identify a suitable connection, and verify what crawlers receive.

FAQs about Prerender and BigCommerce

Eligible BigCommerce storefronts include public headless frontends with a configurable, permitted server, reverse proxy, or CDN connection that can route crawler requests to Prerender’s service. Customer-controlled Cloudflare, Nginx, Apache, or Express deployments are candidates when their actual architecture matches the relevant connection guide and the content is accessible for rendering.

A Stencil storefront may need no additional rendering when its HTML already contains the essential public content. Assess customized JavaScript-dependent content separately, and confirm any proposed proxy arrangement before changing delivery.

Catalyst can be assessed for Prerender when its host permits a suitable frontend connection and the returned HTML has a demonstrated gap. Catalyst uses Next.js and React server components, so a Catalyst storefront should not be treated as a client-rendered SPA solely because it uses React.

Using the proposed Prerender connection on BigCommerce Storefront Hosting requires confirmation from BigCommerce for the exact deployment. BigCommerce documents custom domains with customer-controlled Cloudflare O2O routing, but this does not establish Prerender-specific routing permission or successful rendering-bypass behavior.

An externally hosted BigCommerce frontend can use this Cloudflare connection when the frontend host permits proxying, the public domain is proxied through a customer-controlled zone, and Worker administration is available. Vercel deployments require review against Vercel’s requirements for reverse proxy servers. Vercel discourages placing a reverse proxy in front of its platform and documents conditions for supported proxy traffic.

A Node.js or Next.js frontend does not automatically support the Express connection. The connection requires an editable Express server in the public page request path; a Node.js runtime, build process, or separate API server does not establish that condition.

Prerender does not replace BigCommerce’s storefront APIs. The frontend continues to retrieve commerce data through its existing architecture, while the configured routing layer supplies rendered HTML to eligible crawlers.

Product updates reach Prerender’s cached HTML after the frontend exposes the updated content and Prerender refreshes the rendered page. Coordinate frontend invalidation with scheduled, manual, or event-triggered recaching, including affected category pages. For Catalyst storefronts, account for Catalyst’s separate data caching behavior before refreshing Prerender.

Get in contact with our expert team