code: function proxyConfig(path) {
    const config = {}
  
    const {endpointsExtension} = tryGetGraphQLProjectConfig()
    if (endpointsExtension) {
      const graphqlEndpoint = endpointsExtension.getEndpoint()
  
      const {url: target, headers} = graphqlEndpoint
      const changeOrigin = true
  
      const pathRewrite = {}
      pathRewrite[`^${path}`] = ''
  
      config[path] = {changeOrigin, headers, pathRewrite, target}
    }
  
    return config
  }
docs: Get webpack proxy configuration as per .graphqlconfig.