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