Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: do not register service worker #483

Merged
merged 2 commits into from
Feb 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => (
<AuthProvider>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down