When a site uses our action notifyme, because we fetch the vtexcommercestable API, when vtex trigger the e-mail, the button of the product in the email is with vtexcommercestable domain.
Expected Behavior
As we proxy /no-cache/* route, I think we can fetch:
instead of:
await vcsDeprecated["POST /no-cache/AviseMe.aspx"]({}, { body: form });
Issue Type
Bug Report
Description
When a site uses our action notifyme, because we fetch the vtexcommercestable API, when vtex trigger the e-mail, the button of the product in the email is with vtexcommercestable domain.
Expected Behavior
As we proxy
/no-cache/*
route, I think we can fetch:instead of:
await vcsDeprecated["POST /no-cache/AviseMe.aspx"]({}, { body: form });
something like:
fetch(`${req.url}/no-cache`)