|
@@ -1,3 +1,4 @@
|
|
|
+const { codeInspectorPlugin } = require('code-inspector-plugin')
|
|
|
const withMDX = require('@next/mdx')({
|
|
|
extension: /\.mdx?$/,
|
|
|
options: {
|
|
@@ -13,6 +14,10 @@ const withMDX = require('@next/mdx')({
|
|
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
|
const nextConfig = {
|
|
|
+ webpack: (config, { dev, isServer }) => {
|
|
|
+ config.plugins.push(codeInspectorPlugin({ bundler: 'webpack' }))
|
|
|
+ return config
|
|
|
+ },
|
|
|
productionBrowserSourceMaps: false, // enable browser source map generation during the production build
|
|
|
// Configure pageExtensions to include md and mdx
|
|
|
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
|