-
-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolve next config being deleted problem
- Loading branch information
Showing
16 changed files
with
362 additions
and
377 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
const withPWA = require('next-pwa') | ||
|
||
module.exports = withPWA({ | ||
pwa: { | ||
dest: 'public' | ||
} | ||
const nextConfig = {}; | ||
|
||
module.exports = withPWA(nextConfig, { | ||
dest: 'public' | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
const withPWA = require('next-pwa') | ||
|
||
module.exports = withPWA({ | ||
pwa: { | ||
dest: 'public', | ||
dynamicStartUrl: true, // this is same as default value | ||
dynamicStartUrlRedirect: '/login' // recommend to config this for best user experience if your start-url redirects on first load | ||
} | ||
const nextConfig = {}; | ||
|
||
module.exports = withPWA(nextConfig, { | ||
dest: 'public', | ||
dynamicStartUrl: true, // this is same as default value | ||
dynamicStartUrlRedirect: '/login' // recommend to config this for best user experience if your start-url redirects on first load | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
const withPWA = require('next-pwa') | ||
|
||
module.exports = withPWA({ | ||
pwa: { | ||
dest: 'public' | ||
} | ||
const nextConfig = {}; | ||
|
||
module.exports = withPWA(nextConfig, { | ||
dest: 'public' | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
const withPWA = require('next-pwa') | ||
|
||
module.exports = withPWA({ | ||
pwa: { | ||
dest: 'public' | ||
} | ||
const nextConfig = {}; | ||
|
||
module.exports = withPWA(nextConfig, { | ||
dest: 'public' | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
const withPWA = require('next-pwa') | ||
|
||
module.exports = withPWA({ | ||
pwa: { | ||
dest: 'public', | ||
register: false, | ||
skipWaiting: false | ||
} | ||
const nextConfig = {}; | ||
|
||
module.exports = withPWA(nextConfig, { | ||
dest: 'public', | ||
register: false, | ||
skipWaiting: false | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
const withPWA = require('next-pwa') | ||
|
||
module.exports = withPWA({ | ||
pwa: { | ||
// pwa output folder | ||
// dest: '.next/pwa' | ||
// | ||
// Other configurations: | ||
// ... | ||
} | ||
const nextConfig = {}; | ||
|
||
module.exports = withPWA(nextConfig, { | ||
// pwa output folder | ||
// dest: '.next/pwa' | ||
// | ||
// Other configurations: | ||
// ... | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
const withPWA = require('next-pwa') | ||
|
||
module.exports = withPWA({ | ||
pwa: { | ||
dest: 'public' | ||
} | ||
const nextConfig = {}; | ||
|
||
module.exports = withPWA(nextConfig, { | ||
dest: 'public' | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
const withPWA = require('next-pwa') | ||
|
||
module.exports = withPWA({}) | ||
const nextConfig = {}; | ||
|
||
module.exports = withPWA(nextConfig, {}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
const withPWA = require('next-pwa') | ||
|
||
module.exports = withPWA({ | ||
pwa: { | ||
dest: 'public' | ||
} | ||
const nextConfig = {}; | ||
|
||
module.exports = withPWA(nextConfig, { | ||
dest: 'public' | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
const withPWA = require('next-pwa') | ||
|
||
module.exports = withPWA({ | ||
pwa: { | ||
dest: 'public', | ||
fallbacks: { | ||
image: '/static/images/fallback.png' | ||
// document: '/other-offline', // if you want to fallback to a custom page other than /_offline | ||
// font: '/static/font/fallback.woff2', | ||
// audio: ..., | ||
// video: ..., | ||
} | ||
const nextConfig = {}; | ||
|
||
module.exports = withPWA(nextConfig, { | ||
dest: 'public', | ||
fallbacks: { | ||
image: '/static/images/fallback.png' | ||
// document: '/other-offline', // if you want to fallback to a custom page other than /_offline | ||
// font: '/static/font/fallback.woff2', | ||
// audio: ..., | ||
// video: ..., | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
const withPWA = require('next-pwa') | ||
|
||
module.exports = withPWA({ | ||
pwa: { | ||
dest: 'public', | ||
swSrc: 'service-worker.js' | ||
} | ||
const nextConfig = {}; | ||
|
||
module.exports = withPWA(nextConfig, { | ||
dest: 'public', | ||
swSrc: 'service-worker.js' | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
const withPWA = require('next-pwa') | ||
|
||
module.exports = withPWA({ | ||
pwa: { | ||
dest: 'public' | ||
} | ||
const nextConfig = {}; | ||
|
||
module.exports = withPWA(nextConfig, { | ||
dest: 'public' | ||
}) |
Oops, something went wrong.