Commit Graph

7 Commits

Author SHA1 Message Date
Willem Jiang c6c75f3f77 fix: make SSE buffer size configurable to prevent overflow during multi-round searches (#664) (#665)
* fix: make SSE buffer size configurable to prevent overflow during multi-round searches (Issue #664)

- Add NEXT_PUBLIC_MAX_STREAM_BUFFER_SIZE environment variable for frontend SSE stream buffer
- Default to 1MB for backward compatibility, users can increase to 5-10MB for large searches
- Enhance error message with actual buffer sizes and guidance on configuration
- Add validation schema in env.js with positive integer requirement
- Document configuration in .env.example with clear examples and use cases

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-27 17:03:38 +08:00
Leo Hui 54ee700bb8 feat: show repo star on site-header (#27)
* feat: show repo star on site-header

* feat: add GITHUB_OAUTH_TOKEN to environment configuration

* feat: remove comment

* feat: show star counter only in website
2025-05-12 14:36:50 +08:00
Li Xin e5e3bbc06a feat: integrated with Amplitude in static website mode 2025-05-08 11:13:52 +08:00
Li Xin e46b243edd feat: add STATIC_WEBSITE_ONLY mode 2025-05-02 21:09:31 +08:00
Li Xin 86b05dac35 feat: enable API proxy 2025-04-17 16:39:27 +08:00
He Tao fd85115f6f chore: add license header for web 2025-04-17 14:26:41 +08:00
Li Xin fd7a803753 chore: merge with web UI project 2025-04-17 12:02:23 +08:00