Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
1 line
No EOL
2.6 KiB
Text
1 line
No EOL
2.6 KiB
Text
{"version":3,"sources":["../../../src/server/base-http/helpers.ts"],"sourcesContent":["import type { BaseNextRequest, BaseNextResponse } from './'\nimport type { NodeNextRequest, NodeNextResponse } from './node'\nimport type { WebNextRequest, WebNextResponse } from './web'\n\n/**\n * This file provides some helpers that should be used in conjunction with\n * explicit environment checks. When combined with the environment checks, it\n * will ensure that the correct typings are used as well as enable code\n * elimination.\n */\n\n/**\n * Type guard to determine if a request is a WebNextRequest. This does not\n * actually check the type of the request, but rather the runtime environment.\n * It's expected that when the runtime environment is the edge runtime, that any\n * base request is a WebNextRequest.\n */\nexport const isWebNextRequest = (req: BaseNextRequest): req is WebNextRequest =>\n process.env.NEXT_RUNTIME === 'edge'\n\n/**\n * Type guard to determine if a response is a WebNextResponse. This does not\n * actually check the type of the response, but rather the runtime environment.\n * It's expected that when the runtime environment is the edge runtime, that any\n * base response is a WebNextResponse.\n */\nexport const isWebNextResponse = (\n res: BaseNextResponse\n): res is WebNextResponse => process.env.NEXT_RUNTIME === 'edge'\n\n/**\n * Type guard to determine if a request is a NodeNextRequest. This does not\n * actually check the type of the request, but rather the runtime environment.\n * It's expected that when the runtime environment is the node runtime, that any\n * base request is a NodeNextRequest.\n */\nexport const isNodeNextRequest = (\n req: BaseNextRequest\n): req is NodeNextRequest => process.env.NEXT_RUNTIME !== 'edge'\n\n/**\n * Type guard to determine if a response is a NodeNextResponse. This does not\n * actually check the type of the response, but rather the runtime environment.\n * It's expected that when the runtime environment is the node runtime, that any\n * base response is a NodeNextResponse.\n */\nexport const isNodeNextResponse = (\n res: BaseNextResponse\n): res is NodeNextResponse => process.env.NEXT_RUNTIME !== 'edge'\n"],"names":["isNodeNextRequest","isNodeNextResponse","isWebNextRequest","isWebNextResponse","req","process","env","NEXT_RUNTIME","res"],"mappings":";;;;;;;;;;;;;;;;;IAoCaA,iBAAiB;eAAjBA;;IAUAC,kBAAkB;eAAlBA;;IA7BAC,gBAAgB;eAAhBA;;IASAC,iBAAiB;eAAjBA;;;AATN,MAAMD,mBAAmB,CAACE,MAC/BC,QAAQC,GAAG,CAACC,YAAY,KAAK;AAQxB,MAAMJ,oBAAoB,CAC/BK,MAC2BH,QAAQC,GAAG,CAACC,YAAY,KAAK;AAQnD,MAAMP,oBAAoB,CAC/BI,MAC2BC,QAAQC,GAAG,CAACC,YAAY,KAAK;AAQnD,MAAMN,qBAAqB,CAChCO,MAC4BH,QAAQC,GAAG,CAACC,YAAY,KAAK","ignoreList":[0]} |