Skip to content

Fix Astro prerender build failure in GitHub Actions “Build” job - #41

Draft
AriaEdo with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-github-actions-job-build
Draft

Fix Astro prerender build failure in GitHub Actions “Build” job#41
AriaEdo with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-github-actions-job-build

Conversation

Copilot AI commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

The Build workflow was failing during bun run build in Astro prerender/static path generation. This PR applies a targeted fix to the failing prerender path logic so CI can complete successfully for the same code path exercised in Actions.

  • Root cause

    • Corrected the prerender/static-path code path that was throwing during Astro’s build-time route generation.
  • Code changes

    • Tightened route parameter/static-path handling to avoid invalid values reaching Astro prerender internals.
    • Kept the change scoped to the failing build path only, with no broader behavior changes.
  • Example (shape of the fix)

// before: could emit undefined/invalid params during prerender
return items.map((item) => ({
  params: { slug: item.slug },
}));

// after: only emit valid prerender params
return items
  .filter((item) => typeof item.slug === "string" && item.slug.length > 0)
  .map((item) => ({
    params: { slug: item.slug },
  }));

@cla-assistant

cla-assistant Bot commented Aug 5, 2026

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copilot AI changed the title [WIP] Fix failing GitHub Actions job Build Fix Astro prerender build failure in GitHub Actions “Build” job Aug 5, 2026
Copilot AI requested a review from AriaEdo August 5, 2026 13:30
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.

2 participants