Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 49 lines (48 sloc) 1.12 KB
{
"version": 2,
"name": "nikoheikkila.fi",
"alias": [
"nikoheikkila.fi"
],
"regions": [
"all"
],
"builds": [
{
"src": "package.json",
"use": "@now/static-build",
"config": {
"distDir": "public"
}
}
],
"routes": [
{
"src": "/static/(.*)",
"dest": "/static/$1",
"headers": {
"cache-control": "public, s-maxage=31536000, max-age=0"
}
},
{
"src": "/(.*[^sw]\\.(js|json|css|ico|jpg|png)$)",
"dest": "/$1",
"headers": {
"cache-control": "public, s-maxage=31536000, max-age=0"
}
},
{
"src": "/sw.js",
"headers": {
"cache-control": "public, s-maxage=0, max-age=0, must-revalidate"
}
},
{
"src": "/(.*)",
"dest": "/$1",
"headers": {
"cache-control": "public, s-maxage=1, max-age=0, stale-while-revalidate"
}
}
]
}
You can’t perform that action at this time.