Changes
Breaking
- Node minimum bumped from 14 to 18+.
Minor Changes
- Adds support for on-request handling via the
onRequest
option passed as third argument to the server constructor (or passed in via setServerOptions
in Eleventy. Read more on the Eleventy documentation. Here’s an Eleventy usage example:
eleventyConfig.setServerOptions({
onRequest: {
"/foo/:name": function({ url, pattern, patternGroups }) {
// Can return false (to skip), a string (for body content), or object for more advanced processing, e.g.:
return {
status: 200,
headers: {
"Content-Type": "text/html",
},
body: `Hello.`
};
}
}
});
- Fix CSS live reload behavior when some stylesheets have no URL by @bcole808 in #76
- Add support for byte-range requests by @joemaller in #62
- Add
indexFileName
option to change default index filename from index.html
by @dpikt in #69
- Bugfix for trailing slash redirects when using pathPrefix option. by @petershafer in #64
New Contributors