Skip to content

Setting server variables #1161

Open
Open

Description

@corwin-of-amber

Some services have different subdomains for different clients. e.g. https://{workspace}.example.org. This is addressed by variables.

At the moment, setting variables is only possible via the .server() function call. However, there are a few problems.

  • The server base URL must match that of one of the existing servers, as per Unable to change server. #921. This means the user has to reconstruct the pattern (https://{workspace}.example.org) from the spec.
  • The call is silently ignored if the URL does not match.

I noticed there is also a bug in the latest stable release that server #0 was also skipped. This was changed in the main branch, but I have not been able to test the beta release.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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