deco-cx / apps

App definitions by deco.cx
Apache License 2.0
82 stars 85 forks source link

Notifyme action domain is being added as vtexcommercestable #880

Open guitavano opened 2 months ago

guitavano commented 2 months ago

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`)