Skip to content

Commit

Permalink
fix new page hydration error
Browse files Browse the repository at this point in the history
  • Loading branch information
ibastawisi committed Jan 20, 2025
1 parent 2ec9572 commit 2f4d1af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions next-pwa/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module.exports = [
{
urlPattern: ({ url: { pathname }, sameOrigin }) => {
if (!sameOrigin) return false;
if (navigator.onLine && pathname.match(/\/new\/\w+/)) return false;
return [
"",
"playground",
Expand Down

0 comments on commit 2f4d1af

Please sign in to comment.