mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Update browser endpoint in avatar screenshot API to use service name for improved reliability
This commit is contained in:
@@ -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.
|
||||
Reference in New Issue
Block a user