eleventy icon indicating copy to clipboard operation
eleventy copied to clipboard

Live reload or domdiff doesn't work with local custom tld

Open bediu opened this issue 2 years ago • 1 comments

Operating system

Linux

Eleventy

2.0.1

Describe the bug

I use an internally built in reverse proxy to create custom tlds for developments, such as website.local over (locally) authorized https for good measure.

This is my server options:

eleventyConfig.setServerOptions({
        port: 20464,
        liveReload: true,
        domDiff: true,

        host: 'website.local',
        https: {
          key: path.join(__dirname, '/.cert/localghost', 'https.key'),
          cert: path.join(__dirname, '/.cert/localghost', 'https.cert'),
        },
    });

Everything is working fine except the reloading features.

I am assuming this has to do with the websocket server, since my reverse proxy doesn't support the websocket protocol.

With other setups such as Vite, I simply set the websocket server through a config directly over localhost, so my reverse proxy doesn't try to handle it.

Can I do something similar with eleventy?

Reproduction steps

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See an error

Expected behavior

No response

Reproduction URL

No response

Screenshots

No response

bediu avatar Jun 02 '23 12:06 bediu