15 lines
369 B
TypeScript
15 lines
369 B
TypeScript
|
import type { NextConfig } from "next";
|
||
|
|
||
|
const externals: string[] = ["next-mdx-remote-client"];
|
||
|
if (process.env.TURBOPACK) {
|
||
|
externals.push("rehype-prism-plus");
|
||
|
}
|
||
|
|
||
|
const nextConfig: NextConfig = {
|
||
|
reactStrictMode: true, // 开启react严格模式
|
||
|
serverExternalPackages: externals,
|
||
|
transpilePackages: ["@repo/api", "@repo/ui"],
|
||
|
};
|
||
|
|
||
|
export default nextConfig;
|