Socket
Socket
Sign inDemoInstall

next-plugin-profiler

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-plugin-profiler


Version published
Maintainers
1
Created

Readme

Source

Next.js + React Profiler

Enable the React Profiler during a production build in your Next.js project

Installation

npm install --save next-plugin-profiler

or

yarn add next-plugin-profiler

Usage with environment variables

Create a next.config.js:

// next.config.js
const withProfiler = require(`next-plugin-profiler`)({
  isEnabled: process.env.ENABLE_PROFILER === `true`
});

module.exports = withProfiler({});

Then you can run a build command with environment variable and the condition you've set:

ENABLE_PROFILER=true npm run build

Keywords

FAQs

Last updated on 08 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc