git ssb

0+

Rômulo Alves / plainbudget-next



Commit 83be8b8f43a8989f425e4948524233cb63983146

Fixes next configs

romuloalves committed on 6/24/2019, 12:42:18 PM
Parent: 0e149ed1e49805506189850e99b11ef2da51a5c9

Files changed

next.config.jschanged
now.jsonchanged
next.config.jsView
@@ -1,7 +1,8 @@
11 const withOffline = require('next-offline');
22
33 const nextConfig = {
4 + target: 'serverless',
45 workboxOpts: {
56 swDest: 'static/service-worker.js',
67 runtimeCaching: [
78 {
now.jsonView
@@ -29,8 +29,16 @@
2929 "Access-Control-Allow-Origin": "*"
3030 }
3131 },
3232 {
33 + "src": "^/service-worker.js$",
34 + "dest": "/_next/static/service-worker.js",
35 + "headers": {
36 + "cache-control": "public, max-age=43200, immutable",
37 + "Service-Worker-Allowed": "/"
38 + }
39 + },
40 + {
3341 "src": "/(.*)",
3442 "dest": "/$1",
3543 "headers": {
3644 "Access-Control-Allow-Origin": "*"

Built with git-ssb-web