You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
764 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
// standalone 仅用于生产构建dev 模式启用会导致 routes-manifest 缺失Windows 下 ENOENT
...(process.env.NODE_ENV === "production" ? { output: "standalone" as const } : {}),
// RPA 链playwright-extra → puppeteer-extra-plugin → merge-deep → clone-deep含动态 require禁止 webpack 打包
serverExternalPackages: [
"playwright",
"playwright-core",
"playwright-extra",
"puppeteer-extra-plugin",
"puppeteer-extra-plugin-stealth",
"puppeteer-extra-plugin-user-data-dir",
"puppeteer-extra-plugin-user-preferences",
"clone-deep",
"merge-deep",
"lazy-cache",
"ioredis",
],
};
export default nextConfig;