You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I opened an issue on the supports-color repo here but I'm not sure novu should use chalk in the production build. Chalk is for terminal (.i.e the package description Terminal string styling done right). IMO it's ok to use it in local/dev but we may skip it in the production / deployed environment.
👀 Have you spent some time to check if this bug has been raised before?
📜 Description
When deploying the bridge endpoint (via nuxtjs), it ends up with error 500:
👟 Reproduction steps
Deploying the Bridge Endpoint on Cloudflare Workers
👍 Expected behavior
Status code 200
👎 Actual Behavior with Screenshots
Status code 500
Novu version
Novu SAAS
npm version
No response
node version
Cloudflare Workers
📃 Provide any additional context for the Bug.
I deep dived into the issue and it appears to be related to the chalk library - which is used by
@novu/framework
for logging.To check if the colors are supported on the environment, it use the supports-color package which ends up with
process.argv
access.I opened an issue on the
supports-color
repo here but I'm not sure novu should use chalk in the production build. Chalk is for terminal (.i.e the package description Terminal string styling done right). IMO it's ok to use it in local/dev but we may skip it in the production / deployed environment.👀 Have you spent some time to check if this bug has been raised before?
🏢 Have you read the Contributing Guidelines?
Are you willing to submit PR?
None
The text was updated successfully, but these errors were encountered: