Skip to content

Instantly share code, notes, and snippets.

@sehmaschine
Created July 4, 2019 19:33
Show Gist options
  • Save sehmaschine/6133f9025f78be6d4ec26f23e95c9f5a to your computer and use it in GitHub Desktop.
Save sehmaschine/6133f9025f78be6d4ec26f23e95c9f5a to your computer and use it in GitHub Desktop.
Custom 404 with Gatsby and Now
{
"version": 2,
"name": "xxx",
"builds": [
{
"src": "package.json",
"use": "@now/static-build",
"config": { "distDir": "public" }
}
],
"routes": [
{ "handle": "filesystem" },
{ "src": "/(.*)", "dest": "/404.html", "status": 404 }
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment