@@ -71,7 +71,7 @@ type CreateRequestHandlerOptions<Context = unknown> = {
7171 * the proxy works if you rely on Hydrogen's built-in behaviors such as analytics.
7272 * @default true
7373 */
74- proxyStorefrontApiRequests ?: boolean ;
74+ proxyStandardRoutes ?: boolean ;
7575} ;
7676
7777export function createRequestHandler < Context = unknown > ( {
@@ -80,7 +80,7 @@ export function createRequestHandler<Context = unknown>({
8080 poweredByHeader = true ,
8181 getLoadContext,
8282 collectTrackingInformation = true ,
83- proxyStorefrontApiRequests = true ,
83+ proxyStandardRoutes = true ,
8484} : CreateRequestHandlerOptions < Context > ) {
8585 const handleRequest = createRemixRequestHandler ( build , mode ) ;
8686
@@ -118,7 +118,7 @@ export function createRequestHandler<Context = unknown>({
118118 context as { storefront ?: StorefrontForProxy } | undefined
119119 ) ?. storefront ;
120120
121- if ( proxyStorefrontApiRequests ) {
121+ if ( proxyStandardRoutes ) {
122122 if ( ! storefront ) {
123123 // TODO: this should throw error in future major version
124124 warnOnce (
@@ -145,7 +145,7 @@ export function createRequestHandler<Context = unknown>({
145145
146146 const response = await handleRequest ( request , context ) ;
147147
148- if ( storefront && proxyStorefrontApiRequests ) {
148+ if ( storefront && proxyStandardRoutes ) {
149149 if ( collectTrackingInformation ) {
150150 storefront . setCollectedSubrequestHeaders ( response ) ;
151151 }
0 commit comments