From 3dfe232987c152812185d885dc73a053b069fcbf Mon Sep 17 00:00:00 2001 From: John Serrano Date: Sun, 13 Sep 2020 18:31:32 -0500 Subject: [PATCH] Changes start url #2 --- next.config.js | 4 ++-- public/manifest.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/next.config.js b/next.config.js index d202636..08642c0 100644 --- a/next.config.js +++ b/next.config.js @@ -2,12 +2,12 @@ const withOffline = require('next-offline') const nextConfig = { target: 'serverless', - // transformManifest: manifest => ['/'].concat(manifest), // add the homepage to the cache + transformManifest: manifest => ['/'].concat(manifest), // add the homepage to the cache // Trying to set NODE_ENV=production when running yarn dev causes a build-time error so we // turn on the SW in dev mode so that we can actually test it generateInDevMode: true, workboxOpts: { - swDest: 'static/service-worker.js', + swDest: 'service-worker.js', runtimeCaching: [ { urlPattern: /^https?.*/, diff --git a/public/manifest.json b/public/manifest.json index 24f4ca5..ec6e643 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -22,6 +22,6 @@ "background_color": "#FFFFFF", "description": "Desarrollador web un apasionado y entusiasta de las tecnologĂ­a web: JavaScript, Node.js, Docker, Firebase, React, etc..", "display": "fullscreen", - "start_url": "https://dev.johnserrano.co/", + "start_url": "/", "theme_color": "#000" }