Skip to content

Can't run in container #42

@jkohlin

Description

@jkohlin

I'm running Docusaurus in a Docker container and I can't get this plugin to work. I get this error in the server console:

[ERROR] Error: connect ECONNREFUSED 127.0.0.1:443 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)

I tried to add the proxy-settings to the requestConfig arg but still doesn't work.
If I start Docusaurus with this plugin out commented, and uncomment it after the server starts, I at least won't get the error above, but instead I get a 404.

requestConfig: {
  proxy: {
    protocol: 'http',
    host: '0.0.0.0',
    port: 3000,
},
    responseType: 'json',
    headers: {
      'Access-Control-Allow-Origin': '*'
    }
  }

You can try it out here:
https://codesandbox.io/s/brave-worker-n3608u?file=/docusaurus.config.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem rightquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions