Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

fix: disable caching in dev + fix runtime cache usage

Gabe Kangasf3a32c3fe8c9
diff --git a/web/next.config.js b/web/next.config.js
index 4886ee4bcd..df333c91f0 100644
--- a/web/next.config.js
+++ b/web/next.config.js
@@ -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(