|
|
|
|
|
|
|
|
|
|
|
const { codeInspectorPlugin } = require('code-inspector-plugin') |
|
|
const withMDX = require('@next/mdx')({ |
|
|
const withMDX = require('@next/mdx')({ |
|
|
extension: /\.mdx?$/, |
|
|
extension: /\.mdx?$/, |
|
|
options: { |
|
|
options: { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** @type {import('next').NextConfig} */ |
|
|
/** @type {import('next').NextConfig} */ |
|
|
const 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 |
|
|
productionBrowserSourceMaps: false, // enable browser source map generation during the production build |
|
|
// Configure pageExtensions to include md and mdx |
|
|
// Configure pageExtensions to include md and mdx |
|
|
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'], |
|
|
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'], |