mirror of
https://github.com/QingWei-Li/notea.git
synced 2024-11-29 04:42:29 +03:00
3c47567077
editor: I forked Outline's rich-markdown-editor and made a Notea version for it. Now more of the editor-related issues can be fixed. prosemirror-model: Upgraded prosemirror-model to 1.16.1. I don't know why 1.17+ doesn't work (suspecting something with instanceof not working) so this is a hack.
16 lines
415 B
JavaScript
16 lines
415 B
JavaScript
const nextPWA = require('next-pwa');
|
|
const cache = require('./scripts/cache');
|
|
|
|
const developmentEnv = process.env.NODE_ENV === 'development';
|
|
const withPWA = nextPWA({
|
|
// target: process.env.NETLIFY ? 'serverless' : 'server',
|
|
// mode: process.env.NODE_ENV ?? 'development',
|
|
disable: developmentEnv,
|
|
dest: 'public',
|
|
runtimeCaching: cache,
|
|
});
|
|
|
|
module.exports = withPWA({
|
|
swcMinify: true
|
|
});
|