This directory is a brief example of an Astro site that can be deployed to Vercel with zero configuration.
Deploy your own Astro project with Vercel.
Live Example: https://astro-template.vercel.app
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.
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 --helpAn Astro site, using the basics starter kit.
This directory is a brief example of an Astro site that can be deployed to Vercel with zero configuration.
Deploy your own Astro project with Vercel.
Live Example: https://astro-template.vercel.app
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.
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