Skip to content

Commit

Permalink
fix: Use vtexcommercestable host instead the myvtex one
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfp13 committed Oct 18, 2024
1 parent 9e44ff2 commit d9e4465
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/api/src/platforms/vtex/clients/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ export const fetchAPI = async ({ path, init, options }: FetchAPI) => {
...requestInit,
headers: {
...requestInit.headers,
Host: `${options.account}.myvtex.com`,
// We should avoid the *.myvtex.com host since it is only meant to be used by Admin
Host: `${options.account}.vtexcommercestable.com.br`,
},
}
}
Expand Down

0 comments on commit d9e4465

Please sign in to comment.