notea/next.config.js
tecc 3c47567077
chore!: Update editor to @notea/rich-markdown-editor
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.
2022-10-19 01:55:39 +02:00

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
});