Skip to content

Instantly share code, notes, and snippets.

@robbertvancaem
Created December 9, 2019 08:29
Show Gist options
  • Save robbertvancaem/a8acd4173321ce3193ad62e97fabf081 to your computer and use it in GitHub Desktop.
Save robbertvancaem/a8acd4173321ce3193ad62e97fabf081 to your computer and use it in GitHub Desktop.
dynamic-routing-now-2
{
"name": "dynamic-routing",
"version": 2,
"builds": [{ "src": "next.config.js", "use": "@now/next" }],
"routes": [
{ "src": "/", "dest": "/index" },
{ "src": "/(?<slug>[^/]+)", "dest": "/post?slug=$slug" },
{
"src": "/_next/static/(?:[^/]+/pages|chunks|runtime)/.+",
"headers": { "cache-control": "immutable,max-age=31536000" }
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment