Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): bundle Bun platform packages so one effect instance serves CORS #9118

Closedlnieuwenhuis(GitHub profile, opens in a new tab)wants to merge 5 commits intomain fromrefs/pull/9118/headopened View on GitHub

Showing 9 changed files with 75 additions and 0 deletions (loading 5).

x
0 of 9 viewed, 9 left
12 additions and 0 deletions.github/workflows/ci.ymlModified
View file
@@ -68,6 +68,18 @@
- name: Verify preload bundle output
run: node apps/desktop/scripts/verify-preload-bundle.mjs
​
+ - name: Setup Bun
+ uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
+ with:
+ bun-version: "1.4.0"
+​
+ - name: Smoke the built server under Bun
+ timeout-minutes: 2
+ env:
+ # The standalone child must discard inherited launcher state.
+ T3_SERVICE_LAUNCHER_CONTEXT: '{"protocol":2,"childVersion":"0.0.0"}'
+ run: node scripts/server-runtime-smoke.ts
+​
# Everything except `t3` (apps/server). `--parallel` drops the package
# dependency ordering that `vp run` applies by default: these `test` tasks
# declare no `dependsOn` and resolve workspace deps from source, so ordering
51 additions and 0 deletionsapps/server/scripts/cli.tsModified
View file
@@ -15,6 +15,7 @@
resolveWebAssetBrandForPackageVersion,
resolveWebIconOverrides,
} from "../../../scripts/lib/brand-assets.ts";
+import { findEagerBunRuntimeImports } from "../../../scripts/lib/cli-external-packages.ts";
import { resolveCatalogDependencies } from "../../../scripts/lib/resolve-catalog.ts";
import { fromJsonStringPretty } from "@t3tools/shared/schemaJson";