chore: bring back code-inspector-plugin and agentation (#33088)

Co-authored-by: zhsama <zhsama@users.noreply.github.com>
This commit is contained in:
Stephen Zhou
2026-03-06 17:01:18 +08:00
committed by GitHub
parent c477571553
commit 299a893ac5
6 changed files with 231 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
import type { NextConfig } from 'next'
import createMDX from '@next/mdx'
import { codeInspectorPlugin } from 'code-inspector-plugin'
import { env } from './env'
const isDev = process.env.NODE_ENV === 'development'
@@ -14,6 +15,11 @@ const remoteImageURLs = ([hasSetWebPrefix ? new URL(`${env.NEXT_PUBLIC_WEB_PREFI
const nextConfig: NextConfig = {
basePath: env.NEXT_PUBLIC_BASE_PATH,
transpilePackages: ['@t3-oss/env-core', '@t3-oss/env-nextjs', 'echarts', 'zrender'],
turbopack: {
rules: codeInspectorPlugin({
bundler: 'turbopack',
}),
},
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'],