Update project to Next v12
This commit is contained in:
parent
9027596d06
commit
0be9ae3ff3
@ -1,12 +1,11 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
webpack: (config, { isServer }) => {
|
swcMinify: true,
|
||||||
// Fixes npm packages that depend on `fs` module
|
webpack: (config) => {
|
||||||
if (!isServer) {
|
config.resolve.fallback = {
|
||||||
config.node = {
|
fs: false,
|
||||||
fs: 'empty'
|
buffer: false
|
||||||
}
|
};
|
||||||
}
|
|
||||||
|
|
||||||
return config
|
return config;
|
||||||
}
|
},
|
||||||
}
|
}
|
@ -16,10 +16,10 @@
|
|||||||
"fs": "^0.0.1-security",
|
"fs": "^0.0.1-security",
|
||||||
"gray-matter": "^4.0.2",
|
"gray-matter": "^4.0.2",
|
||||||
"jsnetworkx": "^0.3.4",
|
"jsnetworkx": "^0.3.4",
|
||||||
"next": "^10.0.0",
|
"next": "12",
|
||||||
"path": "^0.12.7",
|
"path": "^0.12.7",
|
||||||
"react": "16.13.1",
|
"react": "^17.0.2",
|
||||||
"react-dom": "16.13.1",
|
"react-dom": "^17.0.2",
|
||||||
"react-folder-tree": "^5.0.3",
|
"react-folder-tree": "^5.0.3",
|
||||||
"remark": "^13.0.0",
|
"remark": "^13.0.0",
|
||||||
"remark-collapse": "^0.1.2",
|
"remark-collapse": "^0.1.2",
|
||||||
|
Loading…
Reference in New Issue
Block a user