Astro landing page scaffold for the Mae site.
npm install
npm run devThe source mockup currently referenced for the landing page is:
/Users/bryan/Documents/code/mae_website_mockup_white-01.png
The events page supports a build-time CSV source via the EVENTS_CSV_URL environment variable.
Setup:
cp .env.example .envThen set EVENTS_CSV_URL to the published CSV export URL for your Google Sheet.
Current sheet URL:
https://docs.google.com/spreadsheets/d/14WjXAfTpnhym-bzfpcq9dKGskBGqN9ge6NAqNZDy2hU/export?format=csv&gid=0If EVENTS_CSV_URL is not set, the site falls back to:
public/assets/MAE Event List - Sheet1.csv
A GitHub Actions workflow is included at:
.github/workflows/redeploy-from-sheet.yml
It can:
- run manually from GitHub Actions
- trigger every 5 minutes
To use it with Vercel:
- In Vercel, open your project.
- Go to
Settings -> Environment Variables. - Add
EVENTS_CSV_URLfor Production, Preview, and Development using the URL above. - Go to
Settings -> Git -> Deploy Hooks. - Create a Deploy Hook for the branch Vercel deploys from.
- In GitHub, open this repository's
Settings -> Secrets and variables -> Actions. - Add a repository secret named
DEPLOY_HOOK_URLwith that Vercel deploy hook URL.
Result:
- updating the Google Sheet changes the CSV source
- GitHub Actions calls the Vercel deploy hook every 5 minutes
- Vercel rebuilds the static site using the latest sheet data