Skip to content

Disable SSR for renderer pages#1279

Open
JackCC703 wants to merge 1 commit into
wulkano:mainfrom
JackCC703:codex/disable-renderer-ssr
Open

Disable SSR for renderer pages#1279
JackCC703 wants to merge 1 commit into
wulkano:mainfrom
JackCC703:codex/disable-renderer-ssr

Conversation

@JackCC703
Copy link
Copy Markdown

@JackCC703 JackCC703 commented May 17, 2026

Summary

  • move Electron-heavy renderer page implementations into renderer/client-pages
  • keep renderer/pages as small Next route wrappers that load the real pages with ssr: false
  • move the shared app shell into a client-only dynamic component
  • keep electron-renderer webpack target limited to client builds so server page collection can run in Node

Why

Kap renders static Electron windows from Next output. Server-side evaluation of renderer modules forces the app to guard Electron-only APIs during build/page collection. Loading the renderer app shell and route bodies client-side avoids evaluating those Electron modules during SSR/static export.

Fixes #515.

Validation

  • npx -y -p node@16 -p yarn@1.22.22 yarn build-renderer
  • npx -y -p node@16 -p yarn@1.22.22 yarn build-main
  • npx -y -p node@16 -p yarn@1.22.22 yarn lint

Note: lint completes with existing repository warnings around TODO comments and complexity; this PR does not add new lint errors.


IssueHunt Summary

Referenced issues

This pull request has been submitted to:


@JackCC703 JackCC703 marked this pull request as ready for review May 17, 2026 02:44
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.

Disable Next.js SSR

1 participant