monorepo/apps/web/next.config.ts

15 lines
369 B
TypeScript
Raw Normal View History

2025-04-30 19:50:16 +08:00
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,
2025-05-03 09:09:01 +08:00
transpilePackages: ["@repo/api", "@repo/ui"],
2025-04-30 19:50:16 +08:00
};
export default nextConfig;