Skip to content

Make host name configurable / change "localhost" occurances in SPFx modules #487

@StfBauer

Description

@StfBauer

Category

  • Question
  • Typo
  • Bug
  • Enhancement / Suggestion
  • Additional article idea

Expected or Desired Behavior

I tried to deploy the workbench to a Docker container on Azure but it fails to work properly. Technically it was running correctly but I spotted some issues in the SharePoint Framework.
The scenario for this is to allow customer to preview web parts and test the behaviour before the web part will be deployed to any tenant.
In addition this scenario allows enhance and improve cross browser testing as well es automated front end testing
It would be great to make hostname configurable vie serve.json.

Observed Behavior

Currently the workbench cannot run on any other host name than localhost. This is because inside the framework the "localhost" string is exposed in many different source files in the node modules. Overall the treatment of the host name is inconsistent in many ways.
serve.json allows to set ports and an initial start page, even if another host name is defined there the all requests will be redirected to localhost.

Metadata

Metadata

Assignees

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