Skip to content

[Vercel] Fix browser installation #226

@gohoski

Description

@gohoski

This is an issue to track the browser installation bugs found in the Vercel deployment.

When suno-api tries to spawn a browser on a Vercel deploy, an error occurs that is related to the difference between the runtime environment (to which suno-api has access) and the build environment (where Chromium gets installed).

error": "Error: pOST: Executable doesn't exist at /home/sbx_user1051/.cache/ms-playwright/chromium_headless_shell-1148/chrome-linux/headless_shell\n╔═════════════════════════════════════════════════════════════════════════╗\n║ Looks like Playwright Test or Playwright was just installed or updated. ║\n║ Please run the following command to download new browsers:              ║\n║                                                                         ║\n║     npx playwright install                                              ║\n║                                                                         ║\n║ <3 Playwright Team                                                      ║\n╚═════════════════════════════════════════════════════════════════════════╝"

@artokun said in #222 (comment) that he has a working Chromium Vercel deployment and I'm currently waiting for him to fix this.

Credits to @jonico for letting me know about this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions