on master help sign in
next.config: use process pkg instead of stubbing fallback
d40e254Matilde Park
next.config.js−1
@@ -49,7 +49,6 @@ module.exports = withTM({
49 if (!isServer) {
49 if (!isServer) {
50 config.resolve.fallback = {
50 config.resolve.fallback = {
51 fs: false,
51 fs: false,
52− process: false,
53 path: "path-browserify",
52 path: "path-browserify",
54 events: false,
53 events: false,
55 };
54 };
package-lock.json+14
@@ -23,6 +23,7 @@
23 "next": "^12.1.5",
23 "next": "^12.1.5",
24 "path-browserify": "^1.0.1",
24 "path-browserify": "^1.0.1",
25 "prismjs": "^1.25.0",
25 "prismjs": "^1.25.0",
26+ "process": "^0.11.10",
26 "react": "^17.0.0",
27 "react": "^17.0.0",
27 "react-dom": "^17.0.0",
28 "react-dom": "^17.0.0",
28 "react-hotkeys": "^2.0.0",
29 "react-hotkeys": "^2.0.0",
@@ -3324,6 +3325,14 @@
3324 "node": ">=6"
3325 "node": ">=6"
3325 }
3326 }
3326 },
3327 },
3328+ "node_modules/process": {
3329+ "version": "0.11.10",
3330+ "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
3331+ "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=",
3332+ "engines": {
3333+ "node": ">= 0.6.0"
3334+ }
3335+ },
3327 "node_modules/prop-types": {
3336 "node_modules/prop-types": {
3328 "version": "15.8.1",
3337 "version": "15.8.1",
3329 "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",
3338 "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",
@@ -7179,6 +7188,11 @@
7179 "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.28.0.tgz",
7188 "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.28.0.tgz",
7180 "integrity": "sha512-8aaXdYvl1F7iC7Xm1spqSaY/OJBpYW3v+KJ+F17iYxvdc8sfjW194COK5wVhMZX45tGteiBQgdvD/nhxcRwylw=="
7189 "integrity": "sha512-8aaXdYvl1F7iC7Xm1spqSaY/OJBpYW3v+KJ+F17iYxvdc8sfjW194COK5wVhMZX45tGteiBQgdvD/nhxcRwylw=="
7181 },
7190 },
7191+ "process": {
7192+ "version": "0.11.10",
7193+ "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
7194+ "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI="
7195+ },
7182 "prop-types": {
7196 "prop-types": {
7183 "version": "15.8.1",
7197 "version": "15.8.1",
7184 "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",
7198 "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",
package.json+1
@@ -27,6 +27,7 @@
27 "next": "^12.1.5",
27 "next": "^12.1.5",
28 "path-browserify": "^1.0.1",
28 "path-browserify": "^1.0.1",
29 "prismjs": "^1.25.0",
29 "prismjs": "^1.25.0",
30+ "process": "^0.11.10",
30 "react": "^17.0.0",
31 "react": "^17.0.0",
31 "react-dom": "^17.0.0",
32 "react-dom": "^17.0.0",
32 "react-hotkeys": "^2.0.0",
33 "react-hotkeys": "^2.0.0",