Fix wrong precaching of public files.
This commit is contained in:
parent
611347f3d0
commit
3cfd5915c2
|
@ -3,7 +3,7 @@ const SentryWebpackPlugin = require('@sentry/webpack-plugin');
|
||||||
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
||||||
enabled: process.env.ANALYZE === 'true',
|
enabled: process.env.ANALYZE === 'true',
|
||||||
});
|
});
|
||||||
const withWorkbox = require('next-with-workbox');
|
const withWorkbox = require('@ente-io/next-with-workbox');
|
||||||
|
|
||||||
const {
|
const {
|
||||||
NEXT_PUBLIC_SENTRY_DSN: SENTRY_DSN,
|
NEXT_PUBLIC_SENTRY_DSN: SENTRY_DSN,
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
"postinstall": "husky install"
|
"postinstall": "husky install"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@ente-io/next-with-workbox": "^1.0.0",
|
||||||
"@sentry/browser": "^5.21.3",
|
"@sentry/browser": "^5.21.3",
|
||||||
"@sentry/integrations": "^5.21.3",
|
"@sentry/integrations": "^5.21.3",
|
||||||
"@sentry/node": "^5.21.3",
|
"@sentry/node": "^5.21.3",
|
||||||
|
@ -38,7 +39,6 @@
|
||||||
"libsodium-wrappers": "^0.7.8",
|
"libsodium-wrappers": "^0.7.8",
|
||||||
"localforage": "^1.9.0",
|
"localforage": "^1.9.0",
|
||||||
"next": "^10.2.3",
|
"next": "^10.2.3",
|
||||||
"next-with-workbox": "^2.0.1",
|
|
||||||
"node-forge": "^0.10.0",
|
"node-forge": "^0.10.0",
|
||||||
"photoswipe": "file:./thirdparty/photoswipe",
|
"photoswipe": "file:./thirdparty/photoswipe",
|
||||||
"react": "16.13.1",
|
"react": "16.13.1",
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { pageCache, offlineFallback } from 'workbox-recipes';
|
||||||
|
|
||||||
pageCache();
|
pageCache();
|
||||||
|
|
||||||
precacheAndRoute(self.__WB_MANIFEST.filter((item) => !item.url.match(/\/manifest\.json/i)));
|
precacheAndRoute(self.__WB_MANIFEST);
|
||||||
cleanupOutdatedCaches();
|
cleanupOutdatedCaches();
|
||||||
|
|
||||||
registerRoute('/share-target', async ({ event }) => {
|
registerRoute('/share-target', async ({ event }) => {
|
||||||
|
|
18
yarn.lock
18
yarn.lock
|
@ -981,6 +981,15 @@
|
||||||
resolved "https://registry.yarnpkg.com/@emotion/weak-memoize/-/weak-memoize-0.2.5.tgz#8eed982e2ee6f7f4e44c253e12962980791efd46"
|
resolved "https://registry.yarnpkg.com/@emotion/weak-memoize/-/weak-memoize-0.2.5.tgz#8eed982e2ee6f7f4e44c253e12962980791efd46"
|
||||||
integrity sha512-6U71C2Wp7r5XtFtQzYrW5iKFT67OixrSxjI4MptCHzdSVlgabczzqLe0ZSgnub/5Kp4hSbpDB1tMytZY9pwxxA==
|
integrity sha512-6U71C2Wp7r5XtFtQzYrW5iKFT67OixrSxjI4MptCHzdSVlgabczzqLe0ZSgnub/5Kp4hSbpDB1tMytZY9pwxxA==
|
||||||
|
|
||||||
|
"@ente-io/next-with-workbox@^1.0.0":
|
||||||
|
version "1.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@ente-io/next-with-workbox/-/next-with-workbox-1.0.0.tgz#4b336e700c5bae73c5d4602a54b0c1b66fe91ab0"
|
||||||
|
integrity sha512-/RG26kF01dUuuDtPJFY3z+NN0Ot8A8Jy+vss8oRGCkeaQK7CCdQU9tr2wi74/XwYevmkE9XOmdQ0edRJSvtUng==
|
||||||
|
dependencies:
|
||||||
|
clean-webpack-plugin "^3.0.0"
|
||||||
|
glob "^7.1.6"
|
||||||
|
workbox-webpack-plugin "^5.1.4"
|
||||||
|
|
||||||
"@eslint/eslintrc@^0.4.2":
|
"@eslint/eslintrc@^0.4.2":
|
||||||
version "0.4.2"
|
version "0.4.2"
|
||||||
resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.4.2.tgz#f63d0ef06f5c0c57d76c4ab5f63d3835c51b0179"
|
resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.4.2.tgz#f63d0ef06f5c0c57d76c4ab5f63d3835c51b0179"
|
||||||
|
@ -4367,15 +4376,6 @@ negotiator@0.6.2:
|
||||||
resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.2.tgz#feacf7ccf525a77ae9634436a64883ffeca346fb"
|
resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.2.tgz#feacf7ccf525a77ae9634436a64883ffeca346fb"
|
||||||
integrity sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==
|
integrity sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==
|
||||||
|
|
||||||
next-with-workbox@^2.0.1:
|
|
||||||
version "2.0.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/next-with-workbox/-/next-with-workbox-2.0.1.tgz#37e25481ce94a02e25f7741e1475499e76f5677a"
|
|
||||||
integrity sha512-nixKm9ei/rP8Zb25a7rBKPUKb0weVIsCBXibvbEnNmU2VAr9xYa6lG3Xyp3aqqlz5Ij7HqgcCCGOyxzCtzAI8w==
|
|
||||||
dependencies:
|
|
||||||
clean-webpack-plugin "^3.0.0"
|
|
||||||
glob "^7.1.6"
|
|
||||||
workbox-webpack-plugin "^5.1.4"
|
|
||||||
|
|
||||||
next@^10.2.3:
|
next@^10.2.3:
|
||||||
version "10.2.3"
|
version "10.2.3"
|
||||||
resolved "https://registry.yarnpkg.com/next/-/next-10.2.3.tgz#5aa058a63626338cea91c198fda8f2715c058394"
|
resolved "https://registry.yarnpkg.com/next/-/next-10.2.3.tgz#5aa058a63626338cea91c198fda8f2715c058394"
|
||||||
|
|
Loading…
Reference in a new issue