From d53cd6576753c1b8a591a4113193324d4f7bbb55 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Fri, 19 May 2023 20:03:41 -0700 Subject: [PATCH] fix: force video assets to never use the cache --- web/next.config.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/web/next.config.js b/web/next.config.js index df333c91f..af95b9f4a 100644 --- a/web/next.config.js +++ b/web/next.config.js @@ -7,7 +7,13 @@ const runtimeCaching = require('next-pwa/cache'); const withPWA = require('next-pwa')({ dest: 'public', - runtimeCaching, + runtimeCaching: [ + ...runtimeCaching, + { + urlPattern: /\.(?:ts|m3u8)$/i, + handler: 'NetworkOnly', + }, + ], register: true, skipWaiting: true, publicExcludes: ['!img/platformlogos/**/*', '!styles/admin/**/*'],