Skip to content

Fix 0.1.13 static-export build (broken by PR #276) - #280

Merged
NishanthNixx merged 1 commit into
mainfrom
fix/static-export-0.1.13
Aug 14, 2026
Merged

Fix 0.1.13 static-export build (broken by PR #276)#280
NishanthNixx merged 1 commit into
mainfrom
fix/static-export-0.1.13

Conversation

@NishanthNixx

Copy link
Copy Markdown
Collaborator

Problem

PR #276 (remove accounts / open-source refactor) broke the Tauri static-export build — the desktop bundle can't be produced, which blocks both local releases and the CI release workflow (it runs the same next build export). This only surfaces in a production/export build, not pnpm dev, so it wasn't caught in review.

Two distinct prerender failures:

  1. 6 tool pagesbase64, jwt-decoder, hash-generator, url-encode, json-formatter, qr-code — read useSearchParams() with no Suspense ancestor → CSR-bailout prerender error.
  2. /dashboardusePinnedToolsStore.persist.hasHydrated() throws Cannot read properties of undefined because .persist is absent during static prerender.

Fix (2 files)

  • app/app/layout.tsx — wrap the shared /app page content in a <Suspense> boundary, covering all 6 tool pages at once.
  • store/pinned-tools-store.ts — guard the .persist access (?.hasHydrated?.() ?? false); "not hydrated" on the server, real value on the client.

Verification

Full static export now emits all 88 pages cleanly, tested against the team's actual next@16.2.10. No dependency changes.

🤖 Generated with Claude Code

PR #276 broke the Tauri static-export build in two places:
- 6 tool pages (base64, jwt-decoder, hash-generator, url-encode, json-formatter,
  qr-code) read useSearchParams() with no Suspense ancestor → CSR-bailout
  prerender error. Wrap the /app page content in a Suspense boundary.
- /dashboard crashed on usePinnedToolsStore.persist.hasHydrated() because
  .persist is undefined during prerender → guard the access (hydrated=false on
  the server, real value on the client).

Verified: full static export now emits all 88 pages with Next 16.2.10.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mydevtools-tech Ready Ready Preview Aug 14, 2026 2:59pm

@NishanthNixx
NishanthNixx merged commit a65a8fa into main Aug 14, 2026
2 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