Get client-facing environment configuration from the server.
GET
/xrpc/place.stream.config.getEnv
const url = 'https://example.com/xrpc/place.stream.config.getEnv';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/xrpc/place.stream.config.getEnvResponses
Section titled “Responses”Success
Media typeapplication/json
object
playbackWorkerUrl
URL of the Cloudflare playback router worker
string
gamesEnabled
Whether the games API is configured and available
boolean
Example generated
{ "playbackWorkerUrl": "example", "gamesEnabled": true}