git ssb

0+

Rômulo Alves / plainbudget-next



Tree: 83be8b8f43a8989f425e4948524233cb63983146

Files: 83be8b8f43a8989f425e4948524233cb63983146 / next.config.js

604 bytesRaw
1const withOffline = require('next-offline');
2
3const nextConfig = {
4 target: 'serverless',
5 workboxOpts: {
6 swDest: 'static/service-worker.js',
7 runtimeCaching: [
8 {
9 urlPattern: /^https?.*/,
10 handler: 'NetworkFirst',
11 options: {
12 cacheName: 'https-calls',
13 networkTimeoutSeconds: 15,
14 expiration: {
15 maxEntries: 150,
16 maxAgeSeconds: 30 * 24 * 60 * 60 // 1 month
17 },
18 cacheableResponse: {
19 statuses: [0, 200]
20 }
21 }
22 }
23 ]
24 }
25}
26
27module.exports = withOffline(nextConfig);

Built with git-ssb-web