This commit is contained in:
2025-03-21 22:40:00 +08:00
parent 7a4578c16d
commit 6e921e82fb
12 changed files with 146 additions and 19 deletions

View File

@@ -1,7 +1,17 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
// next.config.js
const nextConfig:NextConfig = {
// 移除自定义 webpack 配置Next.js 已内置 TypeScript 支持
// 保留以下配置即可
experimental: {
externalDir: true, // 如果需要引用外部目录
},
webpack: (config) => {
// 保留其他必要配置
return config;
},
};
export default nextConfig;