Skip to content

fix(pinner.xyz): pin astro to 7.0.3 to fix prerender trailing slash regression#1094

Merged
pcfreak30 merged 1 commit into
developfrom
fix/astro-prerender-trailing-slash
Jul 7, 2026
Merged

fix(pinner.xyz): pin astro to 7.0.3 to fix prerender trailing slash regression#1094
pcfreak30 merged 1 commit into
developfrom
fix/astro-prerender-trailing-slash

Conversation

@pcfreak30

@pcfreak30 pcfreak30 commented Jul 7, 2026

Copy link
Copy Markdown
Member

Root Cause

PR #1090 (chore(deps): update dependencies) bumped Astro from 7.0.3 to 7.0.6. Astro 7.0.4 changed trailing slash handling for dynamic file endpoints (e.g. [slug].png.ts) when trailingSlash: "always" is set. This causes the prerenderer to fail with:

TypeError: Missing parameter: slug
  at getParameter (prerender-entry.mjs:233:46)
  at stringifyParams (prerender-entry.mjs:268:57)
  at findPathItemByKey (prerender-entry.mjs:432:20)
  at getProps (prerender-entry.mjs:452:28)
Caught error rendering /images/og/default.png/: TypeError: Missing parameter: slug

This breaks the @lumeweb/pinner.xyz build, which cascades to fail the entire CI build. Develop itself is broken (run #28774341033).

Fix

Pin Astro to 7.0.3 in pnpm-workspace.yaml catalog until the upstream regression is resolved.

Verification

pnpm build for @lumeweb/pinner.xyz passes:

24 page(s) built in 4.21s
Complete!

Related


This pull request pins the Astro dependency to version 7.0.3 (down from ^7.0.6) to resolve a prerender trailing slash regression. The version is pinned in the pnpm workspace catalog and the lockfile is updated accordingly, which also adjusts related transitive dependencies such as the Astro compiler bindings, markdown packages, and other linked libraries to match the pinned Astro version.

@kody-ai

This comment has been minimized.

…ions

PR #1090 (chore(deps): update dependencies) introduced two build-breaking
dependency bumps:

1. Astro 7.0.3 -> 7.0.6: 7.0.4 changed trailing slash handling for dynamic
   file endpoints (e.g. [slug].png.ts) with trailingSlash: 'always',
   causing prerender to fail with 'Missing parameter: slug' on
   /images/og/default.png/.

2. react-icons 5.6.0 -> 5.7.0: SiHeroku was removed, causing build to fail
   with '"SiHeroku" is not exported by react-icons/si' in
   portal-framework-auth SocialProviders.

Pinning both until the issues are properly resolved.
@pcfreak30 pcfreak30 force-pushed the fix/astro-prerender-trailing-slash branch from 527e9d2 to 1b49618 Compare July 7, 2026 03:27
@kody-ai

kody-ai Bot commented Jul 7, 2026

Copy link
Copy Markdown

Kody Review Complete

Great news! 🎉
No issues were found that match your current review configurations.

Keep up the excellent work! 🚀

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the @kody start-review command at the root of your PR.

  • Validate Business Logic: Ask Kody to validate your code against business rules by adding a comment with the @kody -v business-logic command.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug
Performance
Security
Business Logic

Access your configuration settings here.

@pcfreak30 pcfreak30 merged commit 6b6d418 into develop Jul 7, 2026
3 checks passed
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