How to set up Apify Proxy correctly with native Puppeteer?
INPUT SCHEMA:
"proxyConfiguration": {
"title": "Proxy configuration",
"type": "object",
"description": "Select proxies to be used.",
"prefill": {
"useApifyProxy": true,
"apifyProxyGroups": [],
"country": ""
},
"editor": "proxy"
}
MAIN.JS:
const input = await Actor.getInput();
const { proxyConfiguration } = input;
const browser = await puppeteer.launch({
headless: "new",
proxy: proxyConfiguration
});
