#Deploying to vercel with vercel folder
1 messages · Page 1 of 1 (latest)
Hi @autumn quartz. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Yes, you can deploy to Vercel with a .vercel folder in your root directory. When using the Vercel adapter for Astro, it creates a Vercel function under the .vercel directory, and Vercel uses that instead of dist for deployment. This is particularly relevant when you're deploying a server-side rendered (SSR) Astro site.
Here's how you can deploy your Astro site to Vercel:
Website UI Deployment
- Push your code to your online Git repository (GitHub, GitLab, BitBucket).
- Import your project into Vercel.
- Vercel will automatically detect Astro and configure the right settings.
- Your application is deployed!
CLI Deployment
- Install the Vercel CLI and run
vercelto deploy.
npm install -g vercelvercel
- Vercel will automatically detect Astro and configure the right settings.
- When asked
Want to override the settings? [y/N], chooseN. - Your application is deployed!
You can also use vercel.json to override the default behavior of Vercel and to configure additional settings.