How to export to vercel

I’m super new to all this and just started on glitch building. What is the easiest way to export my projectst to vercel? I have tried just downloading, putting a git repository, and then deploying that and it’s not working at all. Can someone give clear step by step how to download a glitch project and deploy it on vercel where it will work? thanks

I was using fastify so it may be different for other frameworks/tools.

I had to add this code to the end

export default async function handler(req, res) {
    await fastify.ready();
    fastify.server.emit("request", req, res);
}

and had to make a vercel.json with this code

{
    "version": 2,
    "rewrites": [
        {
            "source": "/(.*)",
            "destination": "/api"
        }
    ]
}

Hi thanks I’m very new to this and don’t what any of this means. I’m asking specifically for a beginners tutorial how to export and import to vercel hopefully from staff or someone who has done this