fix build

This commit is contained in:
2025-03-26 21:50:04 +08:00
parent 7a03396cdd
commit 4ad505cda1
5 changed files with 51 additions and 19 deletions

View File

@@ -3,7 +3,7 @@ import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
// 设置需要转译的包
transpilePackages: [],
transpilePackages: ['swagger-ui-react'],
// 配置实验性选项
experimental: {
@@ -14,8 +14,8 @@ const nextConfig: NextConfig = {
// 禁用严格模式,避免开发时重复渲染
reactStrictMode: false,
// 设置输出为独立应用
output: 'standalone',
// 暂时禁用standalone输出模式解决构建问题
// output: 'standalone',
// 忽略ESLint错误不会在构建时中断
eslint: {