From 23e5524d2a2ec33ff70c0e877ba3cfb29343760a Mon Sep 17 00:00:00 2001 From: Mike Fix Date: Mon, 20 Aug 2018 13:19:33 -0700 Subject: [PATCH] remove next-offline for now --- next.config.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/next.config.js b/next.config.js index 98f091f..f04ff50 100644 --- a/next.config.js +++ b/next.config.js @@ -1,7 +1,7 @@ -const { PHASE_DEVELOPMENT_SERVER } = require('next/constants') -const withOffline = require('next-offline') +// const { PHASE_DEVELOPMENT_SERVER } = require('next/constants') +// const withOffline = require('next-offline') -module.exports = (phase /* { defaultConfig } */) => { +module.exports = (/* phase, { defaultConfig } */) => { const config = { exportPathMap() { return { @@ -18,9 +18,5 @@ module.exports = (phase /* { defaultConfig } */) => { } } - if (phase === PHASE_DEVELOPMENT_SERVER) { - return config - } - - return withOffline(config) + return config }