-
-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING: Update to next.js recommended plugin signature
See comments: vercel/next.js#38498 (comment) Reference implementation: https://github.com/vercel/next.js/blob/canary/packages/next-mdx/index.js#L2
- Loading branch information
1 parent
7bcc597
commit 1e6af5f
Showing
18 changed files
with
452 additions
and
489 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,5 @@ | ||
const withPWA = require('next-pwa') | ||
|
||
module.exports = withPWA({ | ||
pwa: { | ||
dest: 'public' | ||
} | ||
const withPWA = require('next-pwa')({ | ||
dest: 'public' | ||
}) | ||
|
||
module.exports = withPWA() |
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,7 @@ | ||
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 withPWA = require('next-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 | ||
}) | ||
|
||
module.exports = withPWA() |
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,5 @@ | ||
const withPWA = require('next-pwa') | ||
|
||
module.exports = withPWA({ | ||
pwa: { | ||
dest: 'public' | ||
} | ||
const withPWA = require('next-pwa')({ | ||
dest: 'public' | ||
}) | ||
|
||
module.exports = withPWA() |
Oops, something went wrong.