You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor(docker): simplify web runtime scripts and remove unnecessary mjs files #60
Audit the Docker/web runtime setup and determine whether existing .mjs
files are still necessary.
Goal:
Simpler, cleaner runtime setup.
Important
DO NOT blindly replace .mjs with .ts.
Node does not automatically execute arbitrary TypeScript in every
runtime environment.
First determine:
what each .mjs file does
when it runs
whether it is source code or generated runtime glue
whether Bun or Node executes it
whether the production container actually requires it
whether current TanStack/Bun output provides a cleaner alternative
Preferred Outcome
If current tooling allows:
TypeScript source
↓
normal build step
↓
compiled/generated runtime output
instead of manually maintained .mjs glue.
If the .mjs files are unnecessary:
remove them.
If one or more remain genuinely required:
keep only the minimal necessary files and document their purpose in code
through naming/structure rather than adding docs.
Requirements
no runtime TypeScript assumption unless runtime supports it
no duplicate server startup logic
no generated files committed unnecessarily
production image remains minimal
Docker build still reproducible
static assets still served
production health works
Acceptance Criteria
each .mjs audited
unnecessary files removed
startup path simplified where safe
production image builds
production smoke passes
no regression to static asset serving
Workflow
UI/UX and cleanup only. Implement in a focused PR; merge only after current-head required checks and production smokes succeed. Do not publish Alpha 3.
Dependencies
Coordinate with TanStack audit #59; verify all production smokes.
Audit complete for the three handwritten Bun entry scripts:
docker/web/serve.mjs: appliance/web entrypoint; loads the generated TanStack handler and the existing static-asset/request-context helpers, then owns Bun.serve and graceful shutdown. Generated TanStack output does not replace this appliance integration.
docker/web/healthcheck.mjs: Docker HEALTHCHECK and restore readiness probe. Required by the image and recovery tooling.
docker/web/bootstrap-secrets.mjs: production startup plus backup/restore secret materialization and recovery. Required before web/controller startup.
All are active source entrypoints, not checked-in generated artifacts. No unused .mjs file or duplicate startup path was found. Renaming extensions would require changing Docker/entrypoint/backup/restore callers without removing runtime logic, so the minimal working entrypoints are retained. Bun is the explicit runtime; no Node TypeScript assumption was added.
Activity
RentnerKev commentedon Sep 12, 2026
Audit complete for the three handwritten Bun entry scripts:
docker/web/serve.mjs: appliance/web entrypoint; loads the generated TanStack handler and the existing static-asset/request-context helpers, then owns Bun.serve and graceful shutdown. Generated TanStack output does not replace this appliance integration.docker/web/healthcheck.mjs: Docker HEALTHCHECK and restore readiness probe. Required by the image and recovery tooling.docker/web/bootstrap-secrets.mjs: production startup plus backup/restore secret materialization and recovery. Required before web/controller startup.All are active source entrypoints, not checked-in generated artifacts. No unused .mjs file or duplicate startup path was found. Renaming extensions would require changing Docker/entrypoint/backup/restore callers without removing runtime logic, so the minimal working entrypoints are retained. Bun is the explicit runtime; no Node TypeScript assumption was added.
Local runtime/static-assets/request-abort and release-link checks: 41 passed. Full local check also passed. Final current-head Production Smokes for PR #63: https://github.com/RentnerKev/RentnerProxy/actions/runs/34687543993 (running). This issue can close as audited once that run succeeds.
RentnerKev commentedon Sep 12, 2026
Audit completed: all three active Bun runtime entry scripts are required and retained; no obsolete .mjs files or duplicate startup logic remain to remove. Current-head CI and Production Smokes passed for f4292e1, including proxy runtime, certificates/ACME, upstream TLS, appliance startup, backup and restore: https://github.com/RentnerKev/RentnerProxy/actions/runs/34687543993. No release was created.