Commit Graph
14 Commits
Author SHA1 Message Date
tbenandClaude Opus 5.5 b410b92f9f Make the dist directory configurable
Set it with `dist_dir` in bunext.config.ts or `--dist-dir` on any CLI
command (precedence: --dist-dir > BUNEXT_DIST_DIR > dist_dir > .bunext).
setupDistDir() resolves it in the CLI's preAction hook and at the start
of bunextInit(), so custom servers get the config value too.

- Read dist-derived paths from grabDirNames() inside functions instead of
  at import time; a guard test enforces this.
- Derive the client asset URL prefix from the dist dir instead of
  hard-coding /.bunext.
- Make the dev watcher ignore rules and probe follow the dist dir.
- Validate the dir: inside the project root, outside src/, public/ and
  node_modules/, URL-safe characters only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-09 03:55:54 +01:00
tben 5dc783fe97 Fix memory leak in dev server 2026-10-16 14:25:18 +01:00
tben d8ea4f8e02 Error handling bugfix: pass #1 2026-10-02 07:04:22 +01:00
tben 817beacc7a Update build step 2026-07-01 19:18:11 +01:00
tben 61a9d8d612 Bugfix in spawn file 2026-06-23 13:07:28 +01:00
tben b702e26bf6 Security fixes pass #2 2026-04-19 16:00:59 +01:00
tben 9a427412f3 Refactor start and dev commands. Start in child processes. Handle errors better 2026-04-17 08:47:36 +01:00
tben 48c25d2fb4 Update init function 2026-04-04 19:35:14 +01:00
tben 47c262392c Switch back to esbuild 2026-03-24 18:28:56 +01:00
tben 342f56f3f5 Server Refactor 2026-03-24 07:17:03 +01:00
tben 98d3cf7da7 Add features: custom server and websocket. Minor refactoring 2026-03-21 07:42:38 +01:00
tben 52dde6c0ab Update HMR. Make it true HMR. Add URL to page server props 2026-03-20 11:19:22 +01:00
tben c2c63a1a99 Update logs 2026-03-18 18:02:11 +01:00
tben 35930857fd Update API routes function. Add middleware. Update README.md 2026-03-17 19:38:06 +01:00