constructor()

in src/js/utils/preview-webserver.js [18:30]


  constructor() {
    this.usingLocalWebserver = DEFAULT_START_LOCAL_WEBSERVER;
    if (process.env.IA_BUILDER_START_LOCAL_PREVIEW_WEBSERVER !== undefined) {
      this.usingLocalWebserver =
        process.env.IA_BUILDER_START_LOCAL_PREVIEW_WEBSERVER === 'true';
    }

    this.host = process.env.IA_BUILDER_PREVIEW_WEBSERVER_HOST || DEFAULT_HOST;
    this.port = process.env.IA_BUILDER_PREVIEW_WEBSERVER_PORT || DEFAULT_PORT;

    this.baseUrl = new URL(this.host);
    this.baseUrl.port = this.port;
  }