chore: Switch from TypeScript to build with tsdown, speeds up pnpm build by 5-10x.

This commit is contained in:
cpojer
2026-01-31 15:25:06 +09:00
parent d2a852b982
commit 67945e8d62
25 changed files with 553 additions and 234 deletions

View File

@@ -57,7 +57,7 @@ primary_region = "iad"
NODE_OPTIONS = "--max-old-space-size=1536"
[processes]
app = "node dist/index.js gateway --allow-unconfigured --port 3000 --bind lan"
app = "node dist/index.mjs gateway --allow-unconfigured --port 3000 --bind lan"
[http_service]
internal_port = 3000
@@ -332,10 +332,10 @@ If you need to change the startup command without a full redeploy:
fly machines list
# Update command
fly machine update <machine-id> --command "node dist/index.js gateway --port 3000 --bind lan" -y
fly machine update <machine-id> --command "node dist/index.mjs gateway --port 3000 --bind lan" -y
# Or with memory increase
fly machine update <machine-id> --vm-memory 2048 --command "node dist/index.js gateway --port 3000 --bind lan" -y
fly machine update <machine-id> --vm-memory 2048 --command "node dist/index.mjs gateway --port 3000 --bind lan" -y
```
**Note:** After `fly deploy`, the machine command may reset to what's in `fly.toml`. If you made manual changes, re-apply them after deploy.