serve-handler
Advanced tools
Comparing version 3.3.0 to 3.3.1
{ | ||
"name": "serve-handler", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"description": "The routing foundation of `serve` and static deployments on Now", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -249,2 +249,10 @@ # serve-handler | ||
## Error templates | ||
The handler will automatically determine the right error format if one occurs and then sends it to the client in that format. | ||
Furthermore, this allows you to not just specifiy an error template for `404` errors, but also for all other errors that can occur (e.g. `400` or `500`). | ||
Just add a `<status-code>.html` file to the root directory and you're good. | ||
## Middleware | ||
@@ -251,0 +259,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38755
288