Skip to content
Astro Rocket
Get in touch

Product · · 2 min read

Getting Started with Astro Rocket

Install Astro Rocket, run it on your computer and put it online.

On this page
  1. What you need
  2. Get the code
  3. Run it on your computer
  4. Put it online
  5. Next

Astro Rocket is a complete website for a web designer or developer. You put your own name and text in, and the rest is done. This post takes you from the code on GitHub to your site online.

What you need

Get the code

git clone https://github.com/hansmartensdev/Astro-Rocket.git my-site
cd my-site
pnpm install

Run it on your computer

pnpm dev

The site opens at http://localhost:4321. Change a file and the page reloads.

pnpm build makes the finished site in dist/, and pnpm preview shows that build. The search on the site only works in the build.

Put it online

Astro Rocket works on Vercel, Netlify and Cloudflare, and on any server that runs Node. When it builds on one of those three hosts, the theme picks the right adapter by itself. To choose one yourself, set DEPLOY_TARGET to vercel, netlify, cloudflare or node.

On the host, set SITE_URL to your own address, such as https://yourname.com. The theme uses it for the sitemap, the links in search results and the share images.

Next

Your name, your text and your logo come next: see Make Astro Rocket Yours.

Related posts

Get started

Ready to build?

Clone Astro Rocket, pick a theme, and launch your next project in minutes.