Testing a vercel preview app using cypress
How can I dynamically retrieve the URL of a preview app created on Vercel when a pull request is made in a Next.js project deployed via GitHub? I want to utilize Cypress for testing purposes on this deployed app, but I’m unsure how to automatically obtain the preview app’s URL for visiting it in Cypress tests.