Cloud container: the router no longer cuts quiet streams after 10 s
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:
parent
caccc893a4
commit
26f3fdd321
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue