wip
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user