monorepo/apps/web/next.config.ts

25 lines
548 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-05-30 18:42:56 +08:00
images: {
remotePatterns: [
{
protocol: "http",
hostname: "192.168.31.43",
port: "4000",
pathname: "/v1/file/**",
},
],
},
2025-04-30 19:50:16 +08:00
};
export default nextConfig;