Skip to content

Commit

Permalink
feat: update product search URL to remove unnecessary versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
emersonlaurentino committed Dec 6, 2024
1 parent 5080bdf commit 6b7bc60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/sdk/offer/fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function getUrl(skuId: string) {
const base = IS_PROD
? storeUrl
: `https://${api.storeId}.${api.environment}.com.br`
const url = new URL(`${base}/api/io/_v/api/intelligent-search/product_search`)
const url = new URL(`${base}/api/intelligent-search/product_search`)
url.searchParams.append('query', `sku.id:${skuId}`)
if (IS_PROD) {
url.searchParams.append('workspace', 'chrs')
Expand Down

0 comments on commit 6b7bc60

Please sign in to comment.