import type { NextConfig } from "next"; const nextConfig: NextConfig = { serverExternalPackages: [ 'playwright-extra', 'puppeteer-extra-plugin-stealth', 'puppeteer-extra-plugin', ], webpack: (config) => { config.module.rules.push({ test: /\.(md|txt)$/i, type: 'asset/source', // 让这些文件作为纯文本注入 }); return config; }, /* config options here */ }; export default nextConfig;