Class ProxyFactory

java.lang.Object
com.vaadin.flow.server.frontend.ProxyFactory

public class ProxyFactory extends Object
Factory for reading proxy configurations from various sources including system properties, .npmrc files, and environment variables.

For internal use only. May be renamed or removed in a future release.

  • Constructor Details

    • ProxyFactory

      public ProxyFactory()
  • Method Details

    • getProxies

      public static List<ProxyConfig.Proxy> getProxies(File projectDirectory)
      Read list of configured proxies in order from system properties, .npmrc file in the project root folder, .npmrc file in user root folder and system environment variables.
      Parameters:
      projectDirectory - the project directory
      Returns:
      list of configured proxies