Commit 83be8b8f43a8989f425e4948524233cb63983146
Fixes next configs
romuloalves committed on 6/24/2019, 12:42:18 PMParent: 0e149ed1e49805506189850e99b11ef2da51a5c9
Files changed
next.config.js | changed |
now.json | changed |
next.config.js | ||
---|---|---|
@@ -1,7 +1,8 @@ | ||
1 | 1 … | const withOffline = require('next-offline'); |
2 | 2 … | |
3 | 3 … | const nextConfig = { |
4 … | + target: 'serverless', | |
4 | 5 … | workboxOpts: { |
5 | 6 … | swDest: 'static/service-worker.js', |
6 | 7 … | runtimeCaching: [ |
7 | 8 … | { |
now.json | |||
---|---|---|---|
@@ -29,8 +29,16 @@ | |||
29 | 29 … | "Access-Control-Allow-Origin": "*" | |
30 | 30 … | } | |
31 | 31 … | }, | |
32 | 32 … | { | |
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 … | + { | ||
33 | 41 … | "src": "/(.*)", | |
34 | 42 … | "dest": "/$1", | |
35 | 43 … | "headers": { | |
36 | 44 … | "Access-Control-Allow-Origin": "*" |
Built with git-ssb-web