Skip to content

Fix: imported course never appears (prerendered course list) - #78

Open
Azrkiel wants to merge 2 commits into
mainfrom
fix/courses-route-dynamic
Open

Azrkiel wants to merge 2 commits into
mainfrom
fix/courses-route-dynamic

Conversation

@Azrkiel

@Azrkiel Azrkiel commented Nov 15, 2026

Copy link
Copy Markdown
Owner

After Import course, /courses said "No courses yet". GET /api/source/courses uses no request-time API, so with Cache Components next build prerendered its empty response and served it from cache (x-nextjs-cache: HIT). Added await connection() so it reads the store per request.

Verified on a production build: route is ƒ (dynamic) and absent from the prerender manifest; import from Azrkiel/albert-files (Calculus II — Integration Techniques, commit dbed3e3) now lists the course with Learn this course.

🤖 Generated with Claude Code

Azrkiel and others added 2 commits November 15, 2026 07:17
With Cache Components, GET /api/source/courses had no request-time API, so
next build prerendered the empty list and served it forever (x-nextjs-cache:
HIT): after Import course, /courses still said "No courses yet". await
connection() makes it dynamic. Verified: the route is no longer in the
prerender manifest; import from Azrkiel/albert-files then lists the course.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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