Browse Source

fix: disable caching in dev + fix runtime cache usage

pull/3035/head
Gabe Kangas 2 years ago
parent
commit
b28145a26b
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
  1. 5
      web/next.config.js

5
web/next.config.js

@ -2,13 +2,18 @@ const withLess = require('next-with-less'); @@ -2,13 +2,18 @@ const withLess = require('next-with-less');
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
});
const runtimeCaching = require('next-pwa/cache');
const withPWA = require('next-pwa')({
dest: 'public',
runtimeCaching,
register: true,
skipWaiting: true,
publicExcludes: ['!img/platformlogos/**/*', '!styles/admin/**/*'],
buildExcludes: [/chunks\/pages\/admin.*/, '!**/admin/**/*'],
sourcemap: process.env.NODE_ENV === 'development',
disable: process.env.NODE_ENV === 'development',
});
module.exports = withPWA(

Loading…
Cancel
Save