From df3fb16b6ff50bcbf3966fb65a0c53bb6d7e87c9 Mon Sep 17 00:00:00 2001 From: Cedric FAMIBELLE-PRONZOLA Date: Sun, 9 Jan 2022 21:18:11 +0400 Subject: [PATCH] Update next.config --- next.config.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/next.config.js b/next.config.js index c08c9bc..4d9137f 100644 --- a/next.config.js +++ b/next.config.js @@ -1,5 +1,9 @@ -const withOffline = require('next-offline') +const withPWA = require('next-pwa') -const nextConfig = {} - -module.exports = withOffline(nextConfig) +module.exports = withPWA({ + pwa: { + dest: 'public', + register: true, + skipWaiting: true, + } +})