Skip to content

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

@bediu

Description

@bediu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions