Update browser endpoint in avatar screenshot API to use service name for improved reliability

This commit is contained in:
Eldad Fux committed 2025-10-22 01:30:04 +01:00
1 parent dc7bb627d5
commit bb77319703
2 files changed
+6 -1

No files matched your search

+1 -1
View File
@@ -818,7 +818,7 @@ App::get('/v1/avatars/screenshot')
$config = $finalConfig;
try {
$browserEndpoint = Config::getParam('_APP_BROWSER_HOST', 'http://192.168.1.43:3000/v1');
$browserEndpoint = Config::getParam('_APP_BROWSER_HOST', 'http://appwrite-browser:3000/v1');
$fetchResponse = $client->fetch(
url: $browserEndpoint . '/screenshots',
@@ -0,0 +1,5 @@
Use this endpoint to capture a screenshot of any website URL. This endpoint uses a headless browser to render the webpage and capture it as an image.
You can configure the browser viewport size, theme, user agent, geolocation, permissions, and more. Capture either just the viewport or the full page scroll.
When width and height are specified, the image is resized accordingly. If both dimensions are 0, the API provides an image at original size. If dimensions are not specified, the default viewport size is 1280x720px.