From 3b1e326e7bc7956b5960e0f672151642142f4f85 Mon Sep 17 00:00:00 2001 From: Marcus Schiesser <mail@marcusschiesser.de> Date: Thu, 23 Nov 2023 18:20:15 +0700 Subject: [PATCH] fix: don't resolve mongodb for next.js --- templates/types/simple/nextjs/next.config.app.js | 1 + templates/types/simple/nextjs/next.config.static.js | 1 + templates/types/streaming/nextjs/next.config.app.js | 1 + templates/types/streaming/nextjs/next.config.static.js | 1 + 4 files changed, 4 insertions(+) diff --git a/templates/types/simple/nextjs/next.config.app.js b/templates/types/simple/nextjs/next.config.app.js index 06b03370..0ff94969 100644 --- a/templates/types/simple/nextjs/next.config.app.js +++ b/templates/types/simple/nextjs/next.config.app.js @@ -6,6 +6,7 @@ const nextConfig = { ...config.resolve.alias, sharp$: false, "onnxruntime-node$": false, + mongodb$: false, }; return config; }, diff --git a/templates/types/simple/nextjs/next.config.static.js b/templates/types/simple/nextjs/next.config.static.js index 5cf6a479..c5e9ab41 100644 --- a/templates/types/simple/nextjs/next.config.static.js +++ b/templates/types/simple/nextjs/next.config.static.js @@ -8,6 +8,7 @@ const nextConfig = { ...config.resolve.alias, sharp$: false, "onnxruntime-node$": false, + mongodb$: false, }; return config; }, diff --git a/templates/types/streaming/nextjs/next.config.app.js b/templates/types/streaming/nextjs/next.config.app.js index 06b03370..0ff94969 100644 --- a/templates/types/streaming/nextjs/next.config.app.js +++ b/templates/types/streaming/nextjs/next.config.app.js @@ -6,6 +6,7 @@ const nextConfig = { ...config.resolve.alias, sharp$: false, "onnxruntime-node$": false, + mongodb$: false, }; return config; }, diff --git a/templates/types/streaming/nextjs/next.config.static.js b/templates/types/streaming/nextjs/next.config.static.js index 5cf6a479..c5e9ab41 100644 --- a/templates/types/streaming/nextjs/next.config.static.js +++ b/templates/types/streaming/nextjs/next.config.static.js @@ -8,6 +8,7 @@ const nextConfig = { ...config.resolve.alias, sharp$: false, "onnxruntime-node$": false, + mongodb$: false, }; return config; }, -- GitLab