import type { NextConfig } from "next"; import createNextIntlPlugin from "next-intl/plugin"; const withNextIntl = createNextIntlPlugin("./src/i18n/request.ts"); const nextConfig: NextConfig = { output: "standalone", // mysql2 是 Node.js 服务端驱动,依赖 net/tls 等 Node 内置模块, // 不应被 Turbopack 打包到 server bundle 中,标记为外部包在运行时 require。 serverExternalPackages: ["mysql2"], }; export default withNextIntl(nextConfig);