Skip to content

Wire meetups to hosted community API#12

Open
Elvis020 wants to merge 2 commits into
devcongress:mainfrom
Elvis020:main
Open

Wire meetups to hosted community API#12
Elvis020 wants to merge 2 commits into
devcongress:mainfrom
Elvis020:main

Conversation

@Elvis020

Copy link
Copy Markdown
Contributor
  • Add a remote-first meetup loader that fetches the DevCongress Community public API, normalizes the hosted JSON into the existing Astro meetup shape, resolves relative remote assets against the community app, and falls back to local YAML when the API is unavailable.
  • Update the home page, all-meetups index, meetup detail routes, and shared meetup section to consume the normalized loader instead of reading the meetups collection directly.
  • Document the hosted meetup API environment variables and add manual plus twice-weekly GitHub Pages rebuild triggers so static deploys can refresh published meetup data without a content commit.
  • Update the generated Astro meetup schema metadata for location.url/location.label and verify the site with pnpm build.

- Add a remote-first meetup loader that fetches the DevCongress Community public API, normalizes the hosted JSON into the existing Astro meetup shape, resolves relative remote assets against the community app, and falls back to local YAML when the API is unavailable.
- Update the home page, all-meetups index, meetup detail routes, and shared meetup section to consume the normalized loader instead of reading the meetups collection directly.
- Document the hosted meetup API environment variables and add manual plus twice-weekly GitHub Pages rebuild triggers so static deploys can refresh published meetup data without a content commit.
- Update the generated Astro meetup schema metadata for location.url/location.label and verify the site with pnpm build.
@Elvis020 Elvis020 closed this Jun 30, 2026
@Elvis020 Elvis020 reopened this Jun 30, 2026
@Elvis020

Copy link
Copy Markdown
Contributor Author

Don't merge yet...need to update with migrated url

Use the migrated Events Management public origin for meetup data and relative assets instead of the retired devcongress-comm Worker and Pages hosts.

Keep a single optional EVENTS_MANAGEMENT_ORIGIN build variable so admins can redirect the static build without changing code if the Events Management deployment moves.

Update the README to document the new source endpoint and GitHub Actions variable. Verification: pnpm build; EVENTS_MANAGEMENT_ORIGIN=https://events-management.pages.dev pnpm build.
@Elvis020

Copy link
Copy Markdown
Contributor Author

updated the PR to use the migrated event-mangement repo under devcongress but you will need to add this as an additional step..I created a fallback in the code but just in case the url changes..we can change via github instead of codebase

Name: EVENTS_MANAGEMENT_ORIGIN
Value: https://events-management.pages.dev

Path:
GitHub repo → Settings → Secrets and variables → Actions → Variables → New repository variable

This lets the website static build fetch meetup data from the Events Management public API:
https://events-management.pages.dev/api/public/meetups

@bubunyo

Let me know if anything

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant