Setting up AppSignal
To configure AppSignal for front-end JavaScript, we recommend creating anappsignal.js file with the AppSignal config in your project’s root or src directory.
Then require or import the configuration file from the app’s code before any other packages are required or imported.
In the example below, there is an appsignal.js file in the root of the applications directory. On line 8 we’ve added the namespace config option.
Customize the configuration
You can customize the error reporting from your application with the Front-end configuration options. Here’s an example of how the namespace option is customized.Require the AppSignal configuration
Once you’re done with your application’s config, require theappsignal.js file at the very top of your application’s main file, like in the example below: