1. 14
    Deploy a Static Astro Site on Vercel
    1m 1s

Deploy a Static Astro Site on Vercel

Lazar Nikolov
InstructorLazar Nikolov
Share this video with your friends

Social Share Links

Send Tweet
Published a year ago
Updated a year ago

Because our site is pretty standard with no big features that require a database, we'll be deploying to Vercel. Vercel makes it easy to pull in the code from GitHub and has an Astro framework preset so we can deploy with one click.

Lazar Nikolov: [0:06] Our website is already at the point where we can deploy it. In this lesson, we'll see how we can deploy it on Vercel. Before we begin, we need to make sure that our website's code is pushed to the GitHub repository, and that we have a Vercel account to work with.

[0:14] We're going to click the Add New Project. From the repositories list, we're going to select our block repository and click Import. Since our project is an ordinary Astro project that doesn't have specific build steps or environment variables, we're going to leave all of these settings as they are and click Deploy. Vercel is now going to build and deploy our website.

[0:42] There it is, now our website is live. We can access our deployed site by clicking on the screenshot. That's how we can deploy our website to Vercel.

[0:49] Just a heads-up, later in the course we're going to develop some more advanced features that involve a database, a custom API, and Docker, so we're going to be deploying our website to fly.io instead.

egghead
egghead
~ 31 minutes ago

Member comments are a way for members to communicate, interact, and ask questions about a lesson.

The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io

Be on-Topic

Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.

Avoid meta-discussion

  • This was great!
  • This was horrible!
  • I didn't like this because it didn't match my skill level.
  • +1 It will likely be deleted as spam.

Code Problems?

Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context

Details and Context

Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!

Markdown supported.
Become a member to join the discussionEnroll Today