Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Option basePath not working #15

@thernstig

Description

@thernstig

The example in the README shows:

module.exports = {
  command: 'npm run start',
  basePath: '/myservice',
}

However, this will not work due to this piece of code:

url = `${protocol}:${host}:${port}${basePath ? `/${basePath}` : ''}`

With these two combined, there will be a double-slash inserted, which does not work.

I recommend that the code gets updated (instead of the docs). It is more common to specify a slash in front of a basePath than not. Alternatively, you do a check in the code to see if basePath starts with a slash or not and then act accordingly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions