Skip to content

Commit

Permalink
Merge pull request #16 from izzatbey:env-bug-fix
Browse files Browse the repository at this point in the history
Bug Fixing environment variables
  • Loading branch information
izzatbey authored Feb 19, 2025
2 parents 1d4ed09 + 0d7e83a commit ea8f0f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/ReportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -455,12 +455,12 @@ public function downloadReport($id)

$pdfPath = storage_path('app/reports/report_' . $id . '.pdf');
$url = URL::signedRoute('reports.view', ['id' => $id]);
$headerHtml = view('reports.alert_report_header')->render();
// $headerHtml = view('reports.alert_report_header')->render();
$chromiumIpAddress = env('CHROMIUM_IP_ADDRESS');
$chromiumPort = env('CHROMIUM_PORT');

Browsershot::url($url)
->setRemoteInstance('192.168.0.100', '9222')
->setRemoteInstance($chromiumIpAddress, $chromiumPort)
->waitUntilNetworkIdle()
->format('A4')
->showBackground()
Expand Down

0 comments on commit ea8f0f3

Please sign in to comment.