Skip to content
This repository has been archived by the owner on Mar 21, 2019. It is now read-only.

Refactor header #52

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
37 changes: 37 additions & 0 deletions now.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"version": 2,
"name": "react-demo-store",
"builds": [
{
"src": "package.json",
"use": "@now/static-build",
"config": { "distDir": "build" }
}
],
"routes": [
{
"src": "^/static/(.*)",
"headers": { "cache-control": "s-maxage=31536000,immutable" },
"dest": "/static/$1"
},
{
"src": "^/js/(.*)",
"headers": { "cache-control": "s-maxage=31536000,immutable" },
"dest": "/js/$1"
},
{ "src": "^/favicon.ico", "dest": "/favicon.ico" },
{ "src": "^/asset-manifest.json", "dest": "/asset-manifest.json" },
{ "src": "^/manifest.json", "dest": "/manifest.json" },
{ "src": "^/precache-manifest.(.*)", "dest": "/precache-manifest.$1" },
{
"src": "^/service-worker.js",
"headers": { "cache-control": "s-maxage=0" },
"dest": "/service-worker.js"
},
{
"src": "^/(.*)",
"headers": { "cache-control": "s-maxage=0" },
"dest": "/index.html"
}
]
}
Loading