Skip to content

Astro Boilerplate

An Astro site, using the basics starter kit.

Framework Astro
Use Case Starter
CSS CSS
Publisher ▲ Vercel

Astro

This directory is a brief example of an Astro site that can be deployed to Vercel with zero configuration.

Deploy Your Own

Deploy your own Astro project with Vercel.

Live Example: https://astro-template.vercel.app

Project Structure

Inside of your Astro project, you'll see the following folders and files:

/
├── public/
│   └── favicon.ico
├── src/
│   ├── components/
│   │   └── Layout.astro
│   └── pages/
│       └── index.astro
└── package.json

Astro looks for .astro or .md files in the src/pages/ directory. Each page is exposed as a route based on its file name.

There's nothing special about src/components/, but that's where we like to put any Astro/React/Vue/Svelte/Preact components or layouts.

Any static assets, like images, can be placed in the public/ directory.

Commands

All commands are run from the root of the project, from a terminal:

Commandnpm installnpm run devnpm run buildnpm run previewnpm run astro ...npm run astro --help

Astro Boilerplate

An Astro site, using the basics starter kit.

Framework Astro
Use Case Starter
CSS CSS
Publisher ▲ Vercel

Astro

This directory is a brief example of an Astro site that can be deployed to Vercel with zero configuration.

Deploy Your Own

Deploy your own Astro project with Vercel.

Live Example: https://astro-template.vercel.app

Project Structure

Inside of your Astro project, you'll see the following folders and files:

/
├── public/
│   └── favicon.ico
├── src/
│   ├── components/
│   │   └── Layout.astro
│   └── pages/
│       └── index.astro
└── package.json

Astro looks for .astro or .md files in the src/pages/ directory. Each page is exposed as a route based on its file name.

There's nothing special about src/components/, but that's where we like to put any Astro/React/Vue/Svelte/Preact components or layouts.

Any static assets, like images, can be placed in the public/ directory.

Commands

All commands are run from the root of the project, from a terminal:

Commandnpm installnpm run devnpm run buildnpm run previewnpm run astro ...npm run astro --help

Unleash New Possibilities

Deploy your app on Vercel and unlock its full potential