Skip to content

Instantly share code, notes, and snippets.

@marr
Created April 24, 2019 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marr/1a7b842adaa45d06dc7ebe926a593aa2 to your computer and use it in GitHub Desktop.
Save marr/1a7b842adaa45d06dc7ebe926a593aa2 to your computer and use it in GitHub Desktop.
{
"version": 2,
"name": "phmt.me",
"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": "/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" }
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment