mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
fix: disable caching in dev + fix runtime cache usage
This commit is contained in:
parent
05f7075244
commit
b28145a26b
@ -2,13 +2,18 @@ const withLess = require('next-with-less');
|
|||||||
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
||||||
enabled: process.env.ANALYZE === 'true',
|
enabled: process.env.ANALYZE === 'true',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const runtimeCaching = require('next-pwa/cache');
|
||||||
|
|
||||||
const withPWA = require('next-pwa')({
|
const withPWA = require('next-pwa')({
|
||||||
dest: 'public',
|
dest: 'public',
|
||||||
|
runtimeCaching,
|
||||||
register: true,
|
register: true,
|
||||||
skipWaiting: true,
|
skipWaiting: true,
|
||||||
publicExcludes: ['!img/platformlogos/**/*', '!styles/admin/**/*'],
|
publicExcludes: ['!img/platformlogos/**/*', '!styles/admin/**/*'],
|
||||||
buildExcludes: [/chunks\/pages\/admin.*/, '!**/admin/**/*'],
|
buildExcludes: [/chunks\/pages\/admin.*/, '!**/admin/**/*'],
|
||||||
sourcemap: process.env.NODE_ENV === 'development',
|
sourcemap: process.env.NODE_ENV === 'development',
|
||||||
|
disable: process.env.NODE_ENV === 'development',
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = withPWA(
|
module.exports = withPWA(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user