New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

next-plugin-devtools-json

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-plugin-devtools-json

Next.js plugin for serving Chrome DevTools project settings via webpack middleware - no API routes needed

Source
npmnpm
Version
3.1.0
Version published
Weekly downloads
255
50%
Maintainers
1
Weekly downloads
 
Created
Source

next-plugin-devtools-json

Serves DevTools JSON at /.well-known/appspecific/com.chrome.devtools.json during Next.js development using webpack middleware.

Install

npm install --save-dev next-plugin-devtools-json

How it works

This plugin adds a webpack middleware to your Next.js development server that serves a special JSON file at /.well-known/appspecific/com.chrome.devtools.json. This file tells Chrome DevTools where to find your local development server, enabling features like:

  • Live editing of CSS and JavaScript
  • Hot reload integration
  • Remote debugging capabilities
  • Network inspection of your local app

The plugin only runs during development (npm run dev) and automatically serves the required endpoint without needing any API routes or additional configuration.

Setup

Run the setup command:

npx next-plugin-devtools-json

Or manually add to next.config.js:

const withDevToolsJSON = require('next-plugin-devtools-json');

module.exports = process.env.NODE_ENV === 'development' 
  ? withDevToolsJSON({
      // your config
    })
  : {
      // your config
    };

Or next.config.mjs:

import withDevToolsJSON from 'next-plugin-devtools-json';

export default process.env.NODE_ENV === 'development'
  ? withDevToolsJSON({
      // your config
    })
  : {
      // your config
    };

License

MIT

Keywords

nextjs

FAQs

Package last updated on 08 Jun 2025

Related posts