Skip to content

Author page will refuse to render a 404 #1323

Open
@binyamin

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.

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions