Update project to Next v12

This commit is contained in:
Tuan Cao 2022-03-23 11:14:40 +07:00
parent 9027596d06
commit 0be9ae3ff3
3 changed files with 129 additions and 1787 deletions

View File

@ -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;
},
}

View File

@ -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",

1893
yarn.lock

File diff suppressed because it is too large Load Diff