Update to nextjs 12
This commit is contained in:
+2
-1
@@ -5,5 +5,6 @@ module.exports = withPWA({
|
||||
dest: 'public',
|
||||
register: true,
|
||||
skipWaiting: true,
|
||||
}
|
||||
},
|
||||
swcMinify: true
|
||||
})
|
||||
|
||||
+3
-2
@@ -23,12 +23,13 @@
|
||||
"lodash.uniq": "^4.5.0",
|
||||
"material-auto-rotating-carousel": "^3.0.2",
|
||||
"mongodb": "^3.6.9",
|
||||
"next": "^11.0.0",
|
||||
"next": "12",
|
||||
"next-auth": "^3.23.0",
|
||||
"next-pwa": "^5.4.4",
|
||||
"react": "^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": {
|
||||
"eslint": "^7.32.0",
|
||||
|
||||
@@ -15,11 +15,6 @@ app.prepare().then(() => {
|
||||
server.use(compression())
|
||||
}
|
||||
|
||||
server.get(
|
||||
'/service-worker.js',
|
||||
express.static(path.join(process.cwd(), '.next'))
|
||||
)
|
||||
|
||||
server.get('/awtis', (request, response) => {
|
||||
response.redirect('/awtis/paj/1')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user