Capturing multiple asset hosts


Covered in this doc

How to configure Percy to capture assets from many different hosts

By default Percy's SDKs will only capture assets that have a matching hostname to where the snapshot was captured.

For example, if you're taking snapshots on, and the page has assets hosted on, the cdn.example assets will not be captured. In order to capture assets from other hostnames, you will need to each add one to the allowed-hostnames config.

allowed-hostnames can be set via a command line flag (-h or --allowed-hostname) when using percy exec:

$ percy exec -h -- [your test command]

It also can be set in the Global SDK configuration file. Using yml as an example:

version: 1