mirror of
https://github.com/tnypxl/rollup.git
synced 2025-12-13 06:23:18 +00:00
fix: Install Playwright and browsers before initializing
This commit is contained in:
@@ -116,6 +116,13 @@ func SetupLogger(verbose bool) {
|
||||
func InitPlaywright() error {
|
||||
logger.Println("Initializing Playwright")
|
||||
var err error
|
||||
|
||||
// Install Playwright and browsers
|
||||
err = playwright.Install()
|
||||
if err != nil {
|
||||
return fmt.Errorf("could not install Playwright: %v", err)
|
||||
}
|
||||
|
||||
pw, err = playwright.Run()
|
||||
if err != nil {
|
||||
return fmt.Errorf("could not start Playwright: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user