Skip to content

404 support in eleventy serve #386

Closed
@clottman

Description

@clottman

I'm trying to set up an eleventy site in Glitch, which doesn't have default 404 routing like Github Pages and Netlify do. I've tried futzing around with some advanced Glitch configuration options to set up 404 routing, but it's trickier than I'd like.

It would be really cool if people who are using the browser-sync server provided by eleventy serve could configure it to provide 404 routing. This issue suggests how it could be done in each of the places that this.server.init is called in src/EleventyServe.js.

I want to work on creating a pull request for this behavior, but I'm not sure how it fits into configuration of eleventy - should it be on by default, or off by default and configured through an option passed in to serve? Or an option provided in .eleventy.js?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions