monorepo/apps/web/next.config.ts

25 lines
548 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"],
images: {
remotePatterns: [
{
protocol: "http",
hostname: "192.168.31.43",
port: "4000",
pathname: "/v1/file/**",
},
],
},
};
export default nextConfig;