fix: enable SSR for dynamic admin routes#262
Merged
eric-martin-gg merged 6 commits intomainfrom Apr 8, 2026
Merged
Conversation
Remove static export mode (`output: "export"`) which was causing 404s on /admin/student-details/[pid] routes. Update Netlify publish dir to .next so the existing @netlify/plugin-nextjs handles SSR. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
✅ Deploy Preview for uwblueprint ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Upgrade @typescript-eslint packages from v4 to v5 for ESLint 8 compatibility. Fix pre-existing prettier and eslint errors (unescaped entity, auto-generated next-env.d.ts). Add out/ to .prettierignore. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
sthuray
approved these changes
Apr 8, 2026
| </p> | ||
| <p className="text-xs text-charcoal-500"> | ||
| Don't worry, a backup is generated in the code! | ||
| Don't worry, a backup is generated in the code! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
output: "export"fromnext.config.mjs— static export was generating a literal[pid].htmlfile instead of handling dynamic route segments, causing 404s on/admin/student-details/:idoutto.nextso the existing@netlify/plugin-nextjsplugin serves SSR routesTest plan
/adminstill loads and lists applications/admin/student-details/<id>resolves correctly (no more 404)🤖 Generated with Claude Code