|
|
|
|
|
|
|
|
const { basePath, assetPrefix } = require('./utils/var-basePath') |
|
|
|
|
|
const { codeInspectorPlugin } = require('code-inspector-plugin') |
|
|
const { codeInspectorPlugin } = require('code-inspector-plugin') |
|
|
const withMDX = require('@next/mdx')({ |
|
|
const withMDX = require('@next/mdx')({ |
|
|
extension: /\.mdx?$/, |
|
|
extension: /\.mdx?$/, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** @type {import('next').NextConfig} */ |
|
|
/** @type {import('next').NextConfig} */ |
|
|
const nextConfig = { |
|
|
const nextConfig = { |
|
|
basePath, |
|
|
|
|
|
assetPrefix, |
|
|
|
|
|
|
|
|
basePath: process.env.NEXT_PUBLIC_BASE_PATH || '', |
|
|
webpack: (config, { dev, isServer }) => { |
|
|
webpack: (config, { dev, isServer }) => { |
|
|
if (dev) { |
|
|
if (dev) { |
|
|
config.plugins.push(codeInspectorPlugin({ bundler: 'webpack' })) |
|
|
config.plugins.push(codeInspectorPlugin({ bundler: 'webpack' })) |