Prerender works with headless Shopify storefronts whose frontend server, reverse proxy, or CDN permits external crawler routing; existing HTML rendering may already cover their needs. That routing layer sends eligible crawler requests to Prerender’s service. Managed hosting requires confirmation from the provider that the proposed connection is supported.
| Your setup | Prerender compatibility |
| --- | ------ |
| Custom React or Vue SPA served directly by customer-controlled Nginx | Candidate for the documented Nginx SPA connection below, subject to rendering need, provider permission, and public rendering access. |
| Hydrogen hosted outside Oxygen | Assess the actual framework, host, and public request path. Hydrogen alone does not establish a supported connection or a rendering gap. |
| Hydrogen hosted on Oxygen | The Nginx example does not apply. An alternative connection requires confirmation from Shopify. |
| Custom Storefront API frontend on managed hosting | Requires confirmation from the hosting provider that an appropriate server, CDN, or proxy connection is permitted. |
| Frontend already returning essential HTML through server rendering or static generation | Prerender may provide no additional rendering benefit. Inspect representative responses first. |
| Shopify-hosted Online Store using Liquid | Separate compatibility assessment. Liquid already generates HTML; establish both a remaining rendering need and a supported connection. |
A custom frontend may load product descriptions, collection links, headings, or metadata only after JavaScript runs. If that content is absent from returned HTML, machines that do not execute the required JavaScript can receive an incomplete page. This affects machine experience: what machines receive when requesting the storefront. Liquid and appropriately configured Hydrogen or other server-rendered frontends can already supply essential HTML.
Prerender renders accessible JavaScript pages and caches the resulting HTML. In the example below, Nginx sends eligible crawler requests to Prerender’s service and returns the rendered response. Shoppers continue to receive the existing storefront through Nginx. Prerender explains how rendering and caching work across these request paths.
Identify which component receives requests for your public product and collection URLs. Shopify administration access, theme editing, app installation, and Storefront API credentials do not grant control over that component.
This example covers one architecture: a custom React or Vue SPA whose static build is served directly by Nginx on a customer-controlled VM. The frontend retrieves public commerce data from Shopify’s Storefront API. Your team controls DNS, HTTPS, Nginx configuration, frontend files, and deployment; the VM provider must permit the connection.
Shopify describes how independently hosted storefronts access commerce data, including browser-safe public tokens and server-only private credentials.
Before connecting:
For other architectures, assess the connection at the layer actually handling pages. Apache and Cloudflare have separate procedures. Express requires an editable Express server in that request path. These alternatives need their own hosting and routing review.
Follow Prerender’s instructions for connecting a SPA through Nginx, using the linked SPA configuration rather than the PHP or reverse-proxy variant.
map blocks inside the Nginx http context. Add its crawler rewrite to the location serving frontend pages and its /prerenderio handling location to the server.YOUR_TOKEN with your Prerender token in the server configuration. Keep the token out of frontend files.nginx -t, then deploy and restart Nginx through your normal service process.Review the public request path before activation:
| Layer | What to confirm |
| --- | ------ |
| Public hostname and DNS | The actual storefront hostname resolves to this Nginx deployment. Do not repoint Shopify checkout or API domains. |
| HTTPS and service connection | Public certificates are valid. Outbound DNS, TLS/SNI, certificate verification, and Host handling work for service.prerender.io. |
| Public URL construction | The rendering URL retains the intended HTTPS scheme, hostname, path, and relevant query parameters. Review trusted forwarded headers if another routing layer exists. |
| Frontend delivery | Redirects, assets, deep links, and market URLs work before and after activation. This static-file example needs no separate frontend origin hostname. |
| Earlier security and caches | Firewall, bot protection, and cache rules allow intended requests to reach Nginx without serving the wrong response first. |
Keep administration, authentication, previews, accounts, cart, checkout, commerce APIs, private pages, and non-page requests outside rendering scope. Reject or bypass preview and session-dependent queries even when they use an otherwise public product path.
Inspect map $http_user_agent $prerender_ua in the active Nginx configuration. The upstream Nginx SPA configuration currently has the following coverage:
| Crawler | Case-insensitive match | Current upstream sample |
| --- | --- | --- |
| Googlebot | googlebot | Present |
| GPTBot | gptbot | Absent |
| ClaudeBot | claudebot | Absent |
| PerplexityBot | perplexitybot | Absent |
Your deployed configuration may differ. Record the source revision used and inspect the deployed file rather than assuming upstream changes are active.
Append missing entries inside the existing map:
"~*gptbot" 1;
"~*claudebot" 1;
"~*perplexitybot" 1;Retain existing coverage and the "~*Prerender" 0; exclusion before crawler matches. Preserve the separate X-Prerender: 1 bypass, static-file exclusions, and public-route restrictions. Prerender documents how to extend Nginx crawler matching.
Save, run nginx -t, deploy, and restart Nginx. Review earlier firewall rules, AI crawler blocks, challenges, and caches, then test each crawler separately.
Run a GET request against a real public product or collection URL:
curl -i -A "Googlebot" \
"https://www.example.com/products/example-product"Replace the example with your storefront URL. The command retrieves response headers and the HTML body.
Check both handling and content:
x-prerender-request-id and a corresponding request in Prerender’s CDN Analytics, following how to verify crawler routing.Repeat with GPTBot, ClaudeBot, and PerplexityBot. Googlebot success does not establish their coverage.
Test a fresh or refreshed render and a subsequent cached response. Use X-Prerender-Mode, where exposed, to inspect fresh and cached response behavior. After updating a product or collection, confirm the change reaches both the frontend and Prerender’s HTML.
Also test normal shopper delivery and a request carrying X-Prerender: 1. Confirm in routing logs that rendering fetches reach the frontend without another Prerender request. Verify static resources, private routes, and transactional routes remain excluded.
A simulated user agent tests routing conditions. Check real crawler and security logs where available; simulation does not prove that real crawlers pass every access control.
For blocked fetches, incomplete content, or routing failures, follow Prerender’s guidance on troubleshooting rendering and crawler access.
Prerender support can help assess whether your Shopify storefront needs additional rendering, identify a suitable connection, and verify what crawlers receive.
FAQs about Prerender and Shopify
Eligible Shopify storefronts include independently hosted headless frontends with a permitted, configurable server, reverse proxy, or CDN connection in the public page request path. The Nginx procedure above applies specifically to a customer-controlled SPA deployment. Shopify-hosted Liquid storefronts require a separate assessment.
A Shopify storefront may receive no additional rendering benefit from Prerender when its HTML already contains essential product content, collection links, headings, and metadata. Inspect representative responses first, whether the storefront uses Liquid, Hydrogen, or another frontend framework.
A Shopify storefront hosted on Oxygen cannot use the Nginx connection described here because Oxygen does not provide a customer-controlled Nginx server. Oxygen is Shopify’s hosting platform for storefronts built with Hydrogen, Shopify’s headless toolkit. An alternative Prerender connection requires confirmation from Shopify.
An externally hosted Shopify frontend can be considered for Cloudflare when its host permits proxying and your team controls the required domain and Worker configuration. Vercel deployments require review against Vercel’s conditions for external reverse proxies. Hosting on Vercel does not establish permission for every proxy arrangement.
Product updates reach Prerender’s cached HTML after the frontend exposes the changes and the affected URLs are successfully rendered again. Refresh frontend data first, then use scheduled or manual recaching, or a validated workflow using Prerender’s programmatic recache controls. Include affected collection and market URLs, and verify that refreshing has completed.