Commit bd4bfedca4b0bd09f8505a662478749de1fe663f
Configures deploy of static assets
romuloalves committed on 2/6/2019, 8:26:44 PMParent: d43e73c547b54ad1b9f250da0e06562553fdd203
Files changed
now.json | changed |
now.json | ||
---|---|---|
@@ -8,8 +8,9 @@ | ||
8 | 8 … | "NODE_ENV": "production" |
9 | 9 … | }, |
10 | 10 … | "builds": [ |
11 | 11 … | { "src": "next.config.js", "use": "@now/next" }, |
12 … | + { "src": "static/**/*", "use": "@now/static" }, | |
12 | 13 … | { "src": ".well-known/*", "use": "@now/static" } |
13 | 14 … | ], |
14 | 15 … | "routes": [ |
15 | 16 … | { |
@@ -20,8 +21,12 @@ | ||
20 | 21 … | "content-disposition": "inline; filename=\"$1\"" |
21 | 22 … | } |
22 | 23 … | }, |
23 | 24 … | { |
25 … | + "src": "/static/(.*)", | |
26 … | + "dest": "/static/$1" | |
27 … | + }, | |
28 … | + { | |
24 | 29 … | "src": "/(.*)", |
25 | 30 … | "dest": "/$1" |
26 | 31 … | } |
27 | 32 … | ] |
Built with git-ssb-web