Cloud container: the router no longer cuts quiet streams after 10 s
Some checks are pending
Deploy to GitHub Pages / build (push) Waiting to run
Deploy to GitHub Pages / deploy (push) Blocked by required conditions

PocketBase's realtime stream sits quiet while someone signs in in the popup; Bun's default idle timeout
closed it before the sign-in result arrived.
This commit is contained in:
Doxa Maps 2026-09-27 23:54:56 +00:00
parent caccc893a4
commit 26f3fdd321

View file

@ -28,6 +28,9 @@ async function proxy(req, url, prefix, port) {
Bun.serve({
hostname: '127.0.0.1',
port: 5175,
// No idle cut-off: PocketBase's realtime stream (/pb/api/realtime) sits quiet while someone signs in in the
// popup, and Bun's default (10 s) closed it before the sign-in result could arrive.
idleTimeout: 0,
async fetch(req) {
const url = new URL(req.url)
const p = url.pathname