This commit is contained in:
ct
2025-08-10 23:21:30 +08:00
parent 4f55c09e1c
commit 4a80723243

View File

@@ -43,7 +43,10 @@ public function takeScreenshot(string $url, array $options = []): array
private function configureBrowsershot(string $url, array $options = []): Browsershot private function configureBrowsershot(string $url, array $options = []): Browsershot
{ {
$browsershot = Browsershot::url($url); $browsershot = Browsershot::url($url)
->waitUntilNetworkIdle()
->preventUnsuccessfulResponse();
if (App::environment('production')) { if (App::environment('production')) {
$browsershot->noSandbox(); $browsershot->noSandbox();