From 11c56c17b27f4922f39a9c496d02875454321310 Mon Sep 17 00:00:00 2001 From: Daniel Sinclair Date: Thu, 3 Oct 2024 00:17:51 -0400 Subject: [PATCH] fix: external depens --- examples/with-next-custom-button/next.config.js | 4 ++++ examples/with-next-mint-nft/next.config.js | 4 ++++ examples/with-next-rainbow-button/next.config.js | 4 ++++ examples/with-next-siwe-iron-session/next.config.js | 4 ++++ examples/with-next-siwe-next-auth/next.config.js | 4 ++++ examples/with-next-wallet-button/next.config.js | 4 ++++ examples/with-next/next.config.js | 4 ++++ .../create-rainbowkit/generated-test-app/next.config.js | 4 ++++ .../create-rainbowkit/templates/next-app/next.config.js | 4 ++++ packages/example/next.config.js | 6 +++++- site/next.config.js | 4 ++++ 11 files changed, 45 insertions(+), 1 deletion(-) diff --git a/examples/with-next-custom-button/next.config.js b/examples/with-next-custom-button/next.config.js index 91ef62f0db..6c88b7040f 100644 --- a/examples/with-next-custom-button/next.config.js +++ b/examples/with-next-custom-button/next.config.js @@ -1,6 +1,10 @@ /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, + webpack: config => { + config.externals.push('pino-pretty', 'lokijs', 'encoding') + return config + }, }; module.exports = nextConfig; diff --git a/examples/with-next-mint-nft/next.config.js b/examples/with-next-mint-nft/next.config.js index 91ef62f0db..6c88b7040f 100644 --- a/examples/with-next-mint-nft/next.config.js +++ b/examples/with-next-mint-nft/next.config.js @@ -1,6 +1,10 @@ /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, + webpack: config => { + config.externals.push('pino-pretty', 'lokijs', 'encoding') + return config + }, }; module.exports = nextConfig; diff --git a/examples/with-next-rainbow-button/next.config.js b/examples/with-next-rainbow-button/next.config.js index 91ef62f0db..6c88b7040f 100644 --- a/examples/with-next-rainbow-button/next.config.js +++ b/examples/with-next-rainbow-button/next.config.js @@ -1,6 +1,10 @@ /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, + webpack: config => { + config.externals.push('pino-pretty', 'lokijs', 'encoding') + return config + }, }; module.exports = nextConfig; diff --git a/examples/with-next-siwe-iron-session/next.config.js b/examples/with-next-siwe-iron-session/next.config.js index 91ef62f0db..6c88b7040f 100644 --- a/examples/with-next-siwe-iron-session/next.config.js +++ b/examples/with-next-siwe-iron-session/next.config.js @@ -1,6 +1,10 @@ /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, + webpack: config => { + config.externals.push('pino-pretty', 'lokijs', 'encoding') + return config + }, }; module.exports = nextConfig; diff --git a/examples/with-next-siwe-next-auth/next.config.js b/examples/with-next-siwe-next-auth/next.config.js index 91ef62f0db..6c88b7040f 100644 --- a/examples/with-next-siwe-next-auth/next.config.js +++ b/examples/with-next-siwe-next-auth/next.config.js @@ -1,6 +1,10 @@ /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, + webpack: config => { + config.externals.push('pino-pretty', 'lokijs', 'encoding') + return config + }, }; module.exports = nextConfig; diff --git a/examples/with-next-wallet-button/next.config.js b/examples/with-next-wallet-button/next.config.js index 91ef62f0db..6c88b7040f 100644 --- a/examples/with-next-wallet-button/next.config.js +++ b/examples/with-next-wallet-button/next.config.js @@ -1,6 +1,10 @@ /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, + webpack: config => { + config.externals.push('pino-pretty', 'lokijs', 'encoding') + return config + }, }; module.exports = nextConfig; diff --git a/examples/with-next/next.config.js b/examples/with-next/next.config.js index 679cf78cc0..9a160fd617 100644 --- a/examples/with-next/next.config.js +++ b/examples/with-next/next.config.js @@ -1,6 +1,10 @@ /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, + webpack: config => { + config.externals.push('pino-pretty', 'lokijs', 'encoding') + return config + }, i18n: { locales: ['en-US', 'zh-CN'], defaultLocale: 'en-US', diff --git a/packages/create-rainbowkit/generated-test-app/next.config.js b/packages/create-rainbowkit/generated-test-app/next.config.js index 91ef62f0db..6c88b7040f 100644 --- a/packages/create-rainbowkit/generated-test-app/next.config.js +++ b/packages/create-rainbowkit/generated-test-app/next.config.js @@ -1,6 +1,10 @@ /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, + webpack: config => { + config.externals.push('pino-pretty', 'lokijs', 'encoding') + return config + }, }; module.exports = nextConfig; diff --git a/packages/create-rainbowkit/templates/next-app/next.config.js b/packages/create-rainbowkit/templates/next-app/next.config.js index 91ef62f0db..6c88b7040f 100644 --- a/packages/create-rainbowkit/templates/next-app/next.config.js +++ b/packages/create-rainbowkit/templates/next-app/next.config.js @@ -1,6 +1,10 @@ /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, + webpack: config => { + config.externals.push('pino-pretty', 'lokijs', 'encoding') + return config + }, }; module.exports = nextConfig; diff --git a/packages/example/next.config.js b/packages/example/next.config.js index 1bfdfb820d..25af04ae95 100644 --- a/packages/example/next.config.js +++ b/packages/example/next.config.js @@ -1,5 +1,10 @@ /** @type {import('next').NextConfig} */ module.exports = { + reactStrictMode: true, + webpack: (config) => { + config.externals.push('pino-pretty', 'lokijs', 'encoding'); + return config; + }, i18n: { defaultLocale: 'en-US', locales: [ @@ -22,5 +27,4 @@ module.exports = { 'zh-TW', ], }, - reactStrictMode: true, }; diff --git a/site/next.config.js b/site/next.config.js index 714343bbc6..5e98bc95f7 100644 --- a/site/next.config.js +++ b/site/next.config.js @@ -8,6 +8,10 @@ const withVanillaExtract = createVanillaExtractPlugin(); /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: true, + webpack: (config) => { + config.externals.push('pino-pretty', 'lokijs', 'encoding'); + return config; + }, i18n: { locales: [ 'en-US',