|
|
@ -1,7 +1,7 @@
|
|
|
|
const { PHASE_DEVELOPMENT_SERVER } = require('next/constants')
|
|
|
|
// const { PHASE_DEVELOPMENT_SERVER } = require('next/constants')
|
|
|
|
const withOffline = require('next-offline')
|
|
|
|
// const withOffline = require('next-offline')
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = (phase /* { defaultConfig } */) => {
|
|
|
|
module.exports = (/* phase, { defaultConfig } */) => {
|
|
|
|
const config = {
|
|
|
|
const config = {
|
|
|
|
exportPathMap() {
|
|
|
|
exportPathMap() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
@ -18,9 +18,5 @@ module.exports = (phase /* { defaultConfig } */) => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (phase === PHASE_DEVELOPMENT_SERVER) {
|
|
|
|
|
|
|
|
return config
|
|
|
|
return config
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return withOffline(config)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|