Files
NextEdu/next.config.ts
SpecialX e7a01eadef chore(config): update next config, dependencies, and project rules
- Update next.config.ts

- Update package.json and package-lock.json

- Update .trae/rules/project_rules.md
2026-07-04 10:21:32 +08:00

14 lines
482 B
TypeScript

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);