Description
Operating system
macOS Sequoia 15.1
Eleventy
3.1.2-beta.3
Describe the bug
Hello, me again. Sorry for the bother. 😅
The latest beta fixed my previous issue (thanks again!) but sadly also introduces a new bug: the local dev server disconnects when I trigger a save on my Eleventy configuration file. Editing other files does not cause this: only the config file.
Now, the dev terminal trucks along just fine, telling me the rebuild was successful. I can modify a content/template file and see the change in the file in the _site
output folder. However, the localhost
open in my browser disconnects the second I save the .eleventy.js
file:
[11ty][04:05:47.200 UTC] Disconnected [reload-client.js:21:18](http://localhost:2024/.11ty/reload-client.js)
My build command: npx @11ty/eleventy --serve --quiet --incremental
And some (potentially) relevant config items:
eleventyConfig.setConcurrency(1);
eleventyConfig.setServerOptions({ domDiff: false });
I have modified the Eleventy source locally, and this change seems to be the culprit:
src/Eleventy.js@284
await this.eleventyServe.close();
However, commenting this out also has the side effect of making it impossible to shut down the dev server unless you kill the entire terminal, so of course that is not the right solution… but I hope it helps debugging!
As always, I am happy to test out things and provide more information if needed.
Thank you!
Chris
Reproduction steps
- Start a new local dev server
- Open the local site in a browser
- Save the eleventy config file
- Refresh the browser page: the server is disconnected
Expected behavior
The server should remain connected after editing the config.
Reproduction URL
No response
Screenshots
No response