Skip to content

Commit

Permalink
chore: use now for deploy preview
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Jun 8, 2019
1 parent 45662d4 commit 7988391
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions now.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@now/static-build",
"config": {
"distDir": "website/dist"
}
}
],
"routes": [
{
"src": "^/sw.js",
"headers": { "cache-control": "s-maxage=0" },
"dest": "/sw.js"
},
{
"src": "^/(.+)\\.(.+)",
"headers": { "cache-control": "s-maxage=0, public, max-age=0, must-revalidate" },
"dest": "/$1.$2"
},
{
"src": "^/(.*)",
"dest": "/index.html"
}
],
"github": {
"silent": true
}
}

0 comments on commit 7988391

Please sign in to comment.