Mikael LirbankM
Convex Community3y ago
6 replies
Mikael Lirbank

Hey, we're running Playwright in a

Hey, we're running Playwright in a GitHub action after Vercel has deployed (the GH Action is triggered by Vercel when a Vercel deploy is successful). This works great as the Playwright tests are running on the app deployed at Vercel.

But for a lot of tests we seed the Convex DB with a test user just before we run the Playwright test. We use ConvexHttpClient() for seeding the DB, and to be able to use ConvexHttpClient we need the NEXT_PUBLIC_CONVEX_URL - which is dynamic as we use Convex Preview deploys.

Any ideas for how to provide GitHub Actions with the current NEXT_PUBLIC_CONVEX_URL?

And I guess I prolly need some secret too, like CONVEX_DEPLOY_KEY to be able to write to the DB with ConvexHttpClient...
Was this page helpful?