From 9553a579c7e1c24cc06a116ebe65c9902c0d8bfa Mon Sep 17 00:00:00 2001 From: = <=> Date: Mon, 3 May 2021 13:19:15 -0600 Subject: [PATCH] whisper --- next.config.js | 8 ++++---- package.json | 2 +- yarn.lock | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/next.config.js b/next.config.js index 6e123bc79..84edf90af 100644 --- a/next.config.js +++ b/next.config.js @@ -1,12 +1,12 @@ module.exports = { webpack: (config, { isServer }) => { // Fixes npm packages that depend on `fs` module - - config.node = { - fs: 'empty' + if (!isServer) { + config.node = { + fs: 'empty' + } } - return config }, env: { diff --git a/package.json b/package.json index 67a84d45a..1c80c1b93 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "axios": "^0.21.1", "formik": "^2.2.6", "framer-motion": "^2.9.4", - "next": "latest", + "next": "^10.0.9", "next-page-tester": "^0.24.1", "node-fetch": "^2.6.1", "react": "^17.0.1", diff --git a/yarn.lock b/yarn.lock index 850900182..7f2d90fc0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4417,7 +4417,7 @@ next-page-tester@^0.24.1: normalize-path "^3.0.0" stealthy-require "^1.1.1" -next@latest: +next@^10.0.9: version "10.0.9" resolved "https://registry.yarnpkg.com/next/-/next-10.0.9.tgz#ad5d8e0368fee8363cdfd64d22dfbf71f683ae66" integrity sha512-HyoVjYydcM6LaFAUOHSxVQCcKOsIimVO/IKXCuWUu1rr6DDgXbWNg/8ckH084qD46MOYlLzjViiZ3KCmNQL4Cw==