Files
nexus-hub/next.config.ts
2025-03-21 22:40:00 +08:00

18 lines
388 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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