Skip to content

Commit 5a7717d

Browse files
committed
Added now routes
1 parent cdb70b0 commit 5a7717d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

now.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,14 @@
33
"name": "React-Notify",
44
"builds": [
55
{"src": "package.json", "use": "@now/static-build", "config": {"distDir": "build"}}
6-
]
6+
],
7+
"routes": [
8+
{"src": "/static/(.*)", "headers": {"cache-control": "s-maxage=31536000,immutable"}, "dest": "/static/$1"},
9+
{"src": "/favicon.ico", "dest": "/favicon.ico"},
10+
{"src": "/asset-manifest.json", "dest": "/asset-manifest.json"},
11+
{"src": "/manifest.json", "dest": "/manifest.json"},
12+
{"src": "/precache-manifest.(.*)", "dest": "/precache-manifest.$1"},
13+
{"src": "/service-worker.js", "headers": {"cache-control": "s-maxage=0"}, "dest": "/service-worker.js"},
14+
{"src": "/(.*)", "headers": {"cache-control": "s-maxage=0"}, "dest": "/index.html"}
15+
]
716
}

0 commit comments

Comments
 (0)