Website for AimHigher Web Design
Built with Astro. Needs Node 22.23+ (see config/.nvmrc). Tooling config (Astro, ESLint, Prettier, pa11y) lives in config/.
git submodule update --init # lib/ = aimhigherweb/aimhigher-components
npm install
op run --env-file=config/.env.1password -- npm run dev # dev server with secrets from 1Password| Script | What it does |
|---|---|
npm run dev |
Dev server without secrets (CMS content is empty) |
npm run build |
Static build to dist/ (used by Netlify, which supplies its own env vars) |
npm run preview |
Serve dist/ locally |
npm run lint |
ESLint with fixes (house rules) |
npm run lint:ci |
ESLint without fixes |
npm run test:a11y |
pa11y against $URL |
VS Code has a task for each script (.vscode/tasks.json), plus two that wrap them in op run to load secrets from 1Password:
| Task | Runs |
|---|---|
start |
op run --env-file=config/.env.1password -- npm run dev (runs when the folder opens) |
build:local |
op run --env-file=config/.env.1password -- npm run build (default build task) |
_data/content/**/*.md– page copy, loaded as thecontentcollection (src/content.config.js)_data/menus/*.json– header, footer and social menus- Strapi (GraphQL) – blog posts, FAQs, case studies and partners, via
src/utils/cms.js
| Variable | Used for |
|---|---|
STRAPI_API_URL, STRAPI_TOKEN |
Strapi GraphQL API (required for production builds) |
FATHOM_SITE_ID |
Fathom analytics |
GTM_ID |
Google Tag Manager container ID (production only) |
Locally these come from 1Password: config/.env.1password holds op:// references and op run resolves them. Netlify builds use the site's own environment variables.