astro template
an Astro starter template for understated personal websites
Built with:
VERCEL_TOKEN
, VERCEL_PROJECT_ID
, and VERCEL_ORG_ID
secrets toOG_IMAGE_SECRET
to secure your OG image endpoint.Inside of your Astro project, you'll see the following folders and files:
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
pnpm install |
Installs dependencies |
pnpm run dev |
Starts local dev server at localhost:3000
|
pnpm run build |
Build your production site to ./dist/
|
pnpm run preview |
Preview your build locally, before deploying |
pnpm run astro ... |
Run CLI commands like astro add , astro check
|
pnpm run astro --help |
Get help using the Astro CLI |
Click Use this template to create a new repo.
Clone the repository, install with pnpm install
and run with pnpm dev
.
Style it and personalize however you like 💅
Set VERCEL_TOKEN
, VERCEL_PROJECT_ID
, and VERCEL_ORG_ID
secrets to
deploy to Vercel from GHA (what enables access to git history).
(Settings→Secrets)
date
in frontmatter, youderivedTitleAndDatePlugin
function and remove execSync("git log")
Generate a passphrase for OG_IMAGE_SECRET
to secure your OG image endpoint,
and add it to
Actions Secrets.