Update to nextjs 12

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-01-17 22:28:31 +04:00
parent 1ff8b6793f
commit a359f8232f
4 changed files with 499 additions and 1045 deletions
+2 -1
View File
@@ -5,5 +5,6 @@ module.exports = withPWA({
dest: 'public', dest: 'public',
register: true, register: true,
skipWaiting: true, skipWaiting: true,
} },
swcMinify: true
}) })
+3 -2
View File
@@ -23,12 +23,13 @@
"lodash.uniq": "^4.5.0", "lodash.uniq": "^4.5.0",
"material-auto-rotating-carousel": "^3.0.2", "material-auto-rotating-carousel": "^3.0.2",
"mongodb": "^3.6.9", "mongodb": "^3.6.9",
"next": "^11.0.0", "next": "12",
"next-auth": "^3.23.0", "next-auth": "^3.23.0",
"next-pwa": "^5.4.4", "next-pwa": "^5.4.4",
"react": "^17.0.2", "react": "^17.0.2",
"react-dom": "^17.0.2", "react-dom": "^17.0.2",
"react-swipeable-views": "^0.13.9" "react-swipeable-views": "^0.13.9",
"sharp": "^0.29.3"
}, },
"devDependencies": { "devDependencies": {
"eslint": "^7.32.0", "eslint": "^7.32.0",
-5
View File
@@ -15,11 +15,6 @@ app.prepare().then(() => {
server.use(compression()) server.use(compression())
} }
server.get(
'/service-worker.js',
express.static(path.join(process.cwd(), '.next'))
)
server.get('/awtis', (request, response) => { server.get('/awtis', (request, response) => {
response.redirect('/awtis/paj/1') response.redirect('/awtis/paj/1')
}) })
+494 -1037
View File
File diff suppressed because it is too large Load Diff