I have a Next.js app that has an API route that uses Playwright library to extract the HTML of a web page. I'm new to deploying Next.js apps and I'm trying to do so with SST Ion. My app works locally, however when I try to deploy it, I get this error from the console logs:
Hello,
I have a Next.js app that has an API route that uses Playwright library to extract the HTML of a web page. I'm new to deploying Next.js apps and I'm trying to do so with SST Ion. My app works locally, however when I try to deploy it, I get this error from the console logs:
I tried creating a clean sample project from scratch to see if it was a problem with my own app, but I encountered the same error as well.
Here's what my sample API route that uses Playwright looks like:
Here's my basic SST config:
I have
playwright
and@playwright/browser-chromium
installed as dependencies.Is there a way to be able to run Playwright (or browsers in general) on SST Ion?