#Deploying to vercel with vercel folder

1 messages · Page 1 of 1 (latest)

autumn quartz
#

Can I deploy to vercel with a vercel folder in my root directory?

austere lionBOT
#

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

  1. Push your code to your online Git repository (GitHub, GitLab, BitBucket).
  2. Import your project into Vercel.
  3. Vercel will automatically detect Astro and configure the right settings.
  4. Your application is deployed!

CLI Deployment

  1. Install the Vercel CLI and run vercel to deploy.
npm install -g vercelvercel
  1. Vercel will automatically detect Astro and configure the right settings.
  2. When asked Want to override the settings? [y/N], choose N.
  3. Your application is deployed!

You can also use vercel.json to override the default behavior of Vercel and to configure additional settings.

For more details, you can refer to the Astro documentation on deploying to Vercel (https://docs.astro.build/en/guides/deploy/vercel/).

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: