Skip to content

fix: Use pybun instead of bun for SSR command#49

Merged
patrick91 merged 2 commits intomainfrom
fix/use-pybun-for-ssr
Feb 17, 2026
Merged

fix: Use pybun instead of bun for SSR command#49
patrick91 merged 2 commits intomainfrom
fix/use-pybun-for-ssr

Conversation

@patrick91
Copy link
Contributor

Summary

  • Use sys.executable -m pybun for the SSR command instead of bun directly
  • Add pybun>=1.0.0 as a dependency
  • Fixes production crash where bun is not on PATH (exit code 127)

Context

The zero-config SSR feature added in #48 hardcoded bun as the SSR command, but production Python environments (e.g. Docker) don't have bun installed globally. pybun is a Python package that bundles the bun binary, so using sys.executable -m pybun ensures it works wherever the Python app runs.

Test plan

  • Deploy to production and verify SSR works without bun on PATH
  • Verify view-source shows pre-rendered HTML

The SSR command in _create_app was using "bun" directly, which is not
available in production Python environments. Use sys.executable with
pybun (a Python package that bundles bun) so the SSR server works
wherever the Python app runs.
@coderabbitai
Copy link

coderabbitai bot commented Feb 17, 2026

Warning

Rate limit exceeded

@patrick91 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 6 minutes and 11 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/use-pybun-for-ssr

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@patrick91 patrick91 merged commit 60277e1 into main Feb 17, 2026
3 checks passed
@patrick91 patrick91 deleted the fix/use-pybun-for-ssr branch February 17, 2026 08:00
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