Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🔨 chore: fix oidc-provider issue in turbopack (#12550)

Arvin Xu8bc3a8a886e4
diff --git a/src/libs/next/config/define-config.ts b/src/libs/next/config/define-config.ts
index b2d610a91fb..02c0169d35e 100644
--- a/src/libs/next/config/define-config.ts
+++ b/src/libs/next/config/define-config.ts
@@ -81,8 +81,6 @@ export function defineConfig(config: CustomNextConfig) {
// refs: https://github.com/lobehub/lobe-chat/pull/7430
serverMinification: false,
webVitalsAttribution: ['CLS', 'LCP'],
- webpackBuildWorker: true,
- webpackMemoryOptimizations: true,
...config.experimental,
},
async headers() {
@@ -358,8 +356,8 @@ export function defineConfig(config: CustomNextConfig) {
'pdfkit',
'@napi-rs/canvas',
'pdfjs-dist',
-
'ajv',
+ 'oidc-provider',
],
transpilePackages: ['mermaid', 'better-auth-harmony'],