You'll see the following folders and files:
src/
- A directory containing all of your site's codepages/
- A directory containing all of your site's pagescomponents/
- A directory containing all of your site's componentsstyles/
- A directory containing all of your site's styleshooks/
- A directory containing all of your site's hookslayouts/
- A directory containing all of your site's layoutslib/
- A directory containing all of your site's utility functionsstores/
- A directory containing all of your site's stores
public/
- A directory containing all of your site's static assets
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.
Any static assets, like images, can be placed in the public/
directory.
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
pnpm run dev |
Starts local dev server at localhost:4321 |
pnpm run build |
Build your production site to ./dist/ |