A Nuxt.js module to easily add NewRelic APM data to your project.
Note: By default, this module only gets the Node.js server data, without browser monitoring.
- A NewRelic account and license key.
- Add
drunomics/nuxtjs-newrelic
dependency to your Nuxt.js project
npm install drunomics/nuxtjs-newrelic
- Add
@drunomics/nuxtjs-newrelic
to the modules section of nuxt.config.js
{
modules: [
'@drunomics/nuxtjs-newrelic'
]
}
- Add the required variables to your .env:
NEW_RELIC_LICENSE_KEY=your_newrelic_license
NEW_RELIC_APP_NAME=Default
To disable config and use only vars:
NEW_RELIC_NO_CONFIG_FILE=true
- NewRelic Node.js agent documentation:
- List of all dotenv variables:
Development sponsored by drunomics hello@drunomics.com