Quantcast
Viewing all articles
Browse latest Browse all 4830

Define function/callbacks in ENV?

@Myrdhin wrote:

hello Image may be NSFW.
Clik here to view.
:slight_smile:

Could somebody help me to understand why I can not define a function/callback in config/environment.js ENV object?

I see functions/callbacks are removed when we build the application but I can not find where in the ember-cli source code.

Why I want functions/callbacks in ENV ? I use “ember-cli-sentry” addon and we can define some raven-js options in ENV.sentry.ravenOptions. I need one Raven option which is a callback shouldSendCallback (cf https://docs.sentry.io/clients/javascript/config/)

Thanks Image may be NSFW.
Clik here to view.
:smiley:

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4830

Trending Articles