Files
bun.sh/src
Claude Bot 95c759a578 fix(serve): allow server config with stop method to auto-start
The fix for #26142 incorrectly used `typeof def.stop !== 'function'`
to detect Server instances returned by Bun.serve(). This caused server
config objects with a custom `stop` method (e.g., Elysia apps) to not
auto-start.

Changed the detection to use `typeof def.reload !== 'function'` instead,
since `reload` is specific to Server instances and unlikely to be on
user config objects.

Fixes #26747

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 07:03:03 +00:00
..
2026-01-23 00:10:48 -08:00
2026-01-30 01:38:45 -08:00
2026-01-30 01:38:45 -08:00
2026-01-25 10:38:13 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-20 20:56:02 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-12-25 14:00:58 -08:00
2025-11-10 14:38:26 -08:00
2025-10-04 02:17:55 -07:00
2025-07-29 19:35:46 -07:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-25 11:06:24 -08:00
2025-11-10 14:38:26 -08:00
2026-01-07 12:33:21 -08:00
2026-01-31 16:59:03 -08:00
2025-11-10 14:38:26 -08:00
2025-11-20 20:56:02 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-09-09 20:41:10 -07:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2026-01-30 01:38:45 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2026-01-30 01:38:45 -08:00
2025-12-01 21:59:11 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2026-01-30 01:38:45 -08:00