build(web): node-server preset (apt-native runtime, no bun dependency)
decky / build-publish (push) Failing after 0s
docker / build-push (--build-arg FEDORA_VERSION=44, ci, ci/fedora-rpm.Dockerfile, punktfunk-fedora44-rpm) (push) Failing after 1s
docker / build-push (ci, ci/rust-ci.Dockerfile, punktfunk-rust-ci) (push) Failing after 0s
android / android (push) Failing after 20s
ci / web (push) Failing after 12s
ci / docs-site (push) Failing after 0s
ci / bench (push) Failing after 1s
deb / build-publish (push) Failing after 0s
docker / build-push (., web/Dockerfile, punktfunk-web) (push) Failing after 0s
docker / build-push (ci, ci/fedora-rpm.Dockerfile, punktfunk-fedora-rpm) (push) Failing after 1s
docker / deploy-docs (push) Has been skipped
flatpak / build-publish (push) Failing after 1s
ci / rust (push) Failing after 2m24s
docker / build-push (docs-site, docs-site/Dockerfile, punktfunk-docs) (push) Failing after 0s
rpm / build-publish (bazzite, punktfunk-fedora-rpm) (push) Failing after 0s
rpm / build-publish (fedora-44, punktfunk-fedora44-rpm) (push) Failing after 1s
apple / swift (push) Successful in 54s
decky / build-publish (push) Failing after 0s
docker / build-push (--build-arg FEDORA_VERSION=44, ci, ci/fedora-rpm.Dockerfile, punktfunk-fedora44-rpm) (push) Failing after 1s
docker / build-push (ci, ci/rust-ci.Dockerfile, punktfunk-rust-ci) (push) Failing after 0s
android / android (push) Failing after 20s
ci / web (push) Failing after 12s
ci / docs-site (push) Failing after 0s
ci / bench (push) Failing after 1s
deb / build-publish (push) Failing after 0s
docker / build-push (., web/Dockerfile, punktfunk-web) (push) Failing after 0s
docker / build-push (ci, ci/fedora-rpm.Dockerfile, punktfunk-fedora-rpm) (push) Failing after 1s
docker / deploy-docs (push) Has been skipped
flatpak / build-publish (push) Failing after 1s
ci / rust (push) Failing after 2m24s
docker / build-push (docs-site, docs-site/Dockerfile, punktfunk-docs) (push) Failing after 0s
rpm / build-publish (bazzite, punktfunk-fedora-rpm) (push) Failing after 0s
rpm / build-publish (fedora-44, punktfunk-fedora44-rpm) (push) Failing after 1s
apple / swift (push) Successful in 54s
Switch the Nitro build preset from `bun` to `node-server` so the built .output/server is a standalone HTTP server runnable by apt-native `node` (validated: `node .output/server/index.mjs` → Listening, /login 200 on node v25.9.0). This lets the upcoming punktfunk-web .deb depend on `nodejs (>= 20)` instead of vendoring the bun binary. CI still BUILDS with bun; only the runtime target changes, and bun still runs a node-server build, so existing `bun run .output/server/index.mjs` deployments keep working. `vite dev` is unaffected. Prereq for bundling the web console into the apt install. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
+5
-1
@@ -41,7 +41,11 @@ export default defineConfig({
|
|||||||
// proxies to the management host injecting the bearer token server-side) — NOT a static
|
// proxies to the management host injecting the bearer token server-side) — NOT a static
|
||||||
// routeRule, so the proxy runs behind the login gate and reads env at runtime.
|
// routeRule, so the proxy runs behind the login gate and reads env at runtime.
|
||||||
nitroV2Plugin({
|
nitroV2Plugin({
|
||||||
preset: 'bun',
|
// node-server (not bun): a STANDALONE node HTTP server (`node .output/server/index.mjs`
|
||||||
|
// listens — the plain `node` preset only exports a handler). Lets the bundled punktfunk-web
|
||||||
|
// .deb depend on apt-native `nodejs (>= 20)` instead of vendoring bun. CI still BUILDS with
|
||||||
|
// bun; only the runtime target changes. (dev `vite dev` is unaffected.)
|
||||||
|
preset: 'node-server',
|
||||||
compatibilityDate: '2026-06-10',
|
compatibilityDate: '2026-06-10',
|
||||||
// Scan server/{middleware,routes} for the auth gate + the /api proxy.
|
// Scan server/{middleware,routes} for the auth gate + the /api proxy.
|
||||||
scanDirs: [serverDir],
|
scanDirs: [serverDir],
|
||||||
|
|||||||
Reference in New Issue
Block a user