mirror of
https://github.com/QingWei-Li/notea.git
synced 2024-11-29 12:53:00 +03:00
19 lines
376 B
JavaScript
19 lines
376 B
JavaScript
const withPWA = require('next-pwa')
|
|
|
|
module.exports = withPWA({
|
|
future: {
|
|
/**
|
|
* FIXME
|
|
* https://github.com/netlify/netlify-plugin-nextjs/issues/209
|
|
*/
|
|
webpack5: process.env.NETLIFY ? false : true,
|
|
},
|
|
|
|
target: process.env.NETLIFY ? 'serverless' : 'server',
|
|
|
|
pwa: {
|
|
disable: process.env.NODE_ENV === 'development',
|
|
dest: 'public',
|
|
},
|
|
})
|