Skip to content

Commit

Permalink
Merge pull request #9 from blainegarrett/8-next-95
Browse files Browse the repository at this point in the history
Next 9.5 upgrades and elimination of server.js
  • Loading branch information
blainegarrett authored Aug 28, 2020
2 parents 9e266eb + c24f5c1 commit dfee296
Show file tree
Hide file tree
Showing 6 changed files with 212 additions and 300 deletions.
10 changes: 10 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ const nextConfig = {
// Will be available on both server and client
greeting_emoji: process.env.NEXT_PUBLIC_THEME_GREETING_EMOJI,
},
async rewrites() {
return [
{ source: '/favicon.ico', destination: '/static/favicon.ico' },
{ source: '/robots.txt', destination: '/static/robots.txt' },
{ source: '/service-worker.js', destination: '/_next/static/service-worker.js' },
];
},
workboxOpts: {
swDest: './static/service-worker.js',
},
};

// Comment out this conditional if you need to debug service worker during dev
Expand Down
Loading

0 comments on commit dfee296

Please sign in to comment.