Saltar al contenido principal
Esta página no tiene versión en español, así que te la mostramos en inglés.

Config for browserless

Jobs that use the browserless adaptor may require authentication. A "credential" for the browserless adaptor will follow the schema below. When using the CLI, you can set up your own state.configuration by using the sample below.

Sample Configuration​

Paste this into the configuration key of your state.json file and modify the values to run jobs locally.

{
"baseUrl": "https://production-sfo.browserless.io",
"token": "your-browserless-token"
}

Full Schema​

The full configuration schema describes each attribute of the credential and notes those that are required.

{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"baseUrl": {
"title": "Base URL",
"type": "string",
"description": "The Browserless base URL (e.g. https://production-sfo.browserless.io)",
"format": "uri",
"minLength": 1,
"examples": [
"https://production-sfo.browserless.io"
]
},
"token": {
"title": "API Token",
"type": "string",
"description": "Browserless API token",
"writeOnly": true,
"minLength": 1,
"examples": [
"your-browserless-token"
]
}
},
"type": "object",
"additionalProperties": true,
"required": [
"baseUrl",
"token"
]
}