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.

✨ feat: Add turbopack configuration support to CustomNextConfig

YuTengjing2e7076a9fd01
diff --git a/src/libs/next/config/define-config.ts b/src/libs/next/config/define-config.ts
index 431953fe081..199ed845011 100644
--- a/src/libs/next/config/define-config.ts
+++ b/src/libs/next/config/define-config.ts
@@ -8,6 +8,7 @@ import ReactComponentName from 'react-scan/react-component-name/webpack';
interface CustomNextConfig {
headers?: Header[];
redirects?: Redirect[];
+ turbopack?: NextConfig['turbopack'];
}
export function defineConfig(config: CustomNextConfig) {
@@ -317,6 +318,7 @@ export function defineConfig(config: CustomNextConfig) {
bundler: 'turbopack',
hotKeys: ['altKey', 'ctrlKey'],
}),
+ ...config.turbopack,
},
typescript: {