-
-
Notifications
You must be signed in to change notification settings - Fork 710
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Summary
Given a URL https:///11ty.dev/authors/:name/ - if :name doesn't exist, or :name contains uppercase characters, the serverless function fails.
Details
When there's a trailing slash, the HTTP status code is 500. The response is a JSON object, instead of HTML. The object looks like this:
{
"error": "json.filter is not a function"
}When the trailing slash is omitted, the status code is 404, and the object looks like this:
{
"error": "No matching URL found for /authors/binyaminGreen in {\"/authors/:name/\":\"./src/authors/author-pages.md\"}"
}Notes
This may be a problem with the internal Serverless plugin, but I decided to start from the beginning of the chain.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working