Skip to content

Commit 14104f6

Browse files
committed
Add Playwright installation step before starting the application
1 parent 8d102e1 commit 14104f6

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

main.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ func init() {
4949
}
5050

5151
func main() {
52-
log.Info("Starting Any AI Proxy API application...")
5352
// Load application configuration
5453
cfg, err := config.LoadConfig()
5554
if err != nil {
@@ -60,6 +59,16 @@ func main() {
6059
log.SetLevel(log.InfoLevel)
6160
}
6261

62+
err = playwright.Install(&playwright.RunOptions{
63+
Verbose: cfg.Debug,
64+
})
65+
if err != nil {
66+
log.Fatalf("Install playwright failed: %v", err)
67+
return
68+
}
69+
70+
log.Info("Starting Any AI Proxy API application...")
71+
6372
browserManagers := make([]*browser.Manager, 0)
6473

6574
defer func() {

0 commit comments

Comments
 (0)