next-debug-local
v0.1.4 next next.js debug
Next Debug Local
Debug you package outside the monorepo
Requirement
Next.js > 13.1.0
Usage
/** @type {import('next').NextConfig} */
const nextConfig = {
// ...
}
const withDebug = require('next-debug-local')({
'@blocksuite/store': '/path/to/repo/packages/store',
'@blocksuite/blocks': '/path/to/repo/packages/blocks',
'@blocksuite/editor': '/path/to/repo/packages/editor',
}, {
enable: process.env.ENABLE_DEBUG_LOCAL
})
module.exports = withDebug(config)