From f2fe3f640e7d017784fb1741e870263a0314d3ea Mon Sep 17 00:00:00 2001 From: Braian Mellor Date: Tue, 28 Feb 2023 14:45:34 -0500 Subject: [PATCH 1/2] fix: do not register service worker --- gatsby-browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gatsby-browser.js b/gatsby-browser.js index d1daa375..583420e9 100644 --- a/gatsby-browser.js +++ b/gatsby-browser.js @@ -34,7 +34,7 @@ import Categories from "./src/context/Category" import Events from "./src/context/Event" import ProfileSettings from "./src/context/ProfileSetting" -export const registerServiceWorker = () => true +export const registerServiceWorker = () => false export const wrapRootElement = ({ element }) => ( From c3d9fa5b05b0adb9f9ce6a4aec2a79f711b510d3 Mon Sep 17 00:00:00 2001 From: Braian Mellor Date: Tue, 28 Feb 2023 15:10:13 -0500 Subject: [PATCH 2/2] fix: remove build sw from dockerfile --- Dockerfile | 1 - package.json | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1978320c..2babcd66 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,7 +44,6 @@ RUN sed -i.temp '/Pulumi\.ts/d' package.json RUN NODE_OPTIONS="--max-old-space-size=2048" npm run build:server RUN NODE_OPTIONS="--max-old-space-size=2048" npm run build:front -RUN NODE_OPTIONS="--max-old-space-size=2048" npm run build:sw RUN npm prune --production FROM node:16.14-alpine diff --git a/package.json b/package.json index a2e6922e..ec8043ca 100644 --- a/package.json +++ b/package.json @@ -93,7 +93,7 @@ ], "license": "MIT", "scripts": { - "build": "npm run build:server && npm run build:sw && npm run build:front", + "build": "npm run build:server && npm run build:front", "build:server": "tsc -p .", "build:front": "gatsby build", "build:sw": "workbox generateSW workbox-config.js",