Slim down chrome requirements for the server

This commit is contained in:
Eli Ribble 2026-04-17 14:51:24 +00:00
parent cb92b845e6
commit bf156eaf7f
No known key found for this signature in database

View file

@ -12,6 +12,7 @@ import (
func GeneratePDF(ctx context.Context, path string) ([]byte, error) {
// create context
chromedp.Env("CHROME_FLAGS=--no-sandbox --disable-gpu --disable-dev-shm-usage")
chrome_ctx, cancel := chromedp.NewContext(context.Background())
defer cancel()