Skip to content
TypeScript

fix(relay): deploys plan again after the Worker lost its default export (#26303)

Julius Marminge822fc156d821
diff --git a/infra/relay/src/worker.ts b/infra/relay/src/worker.ts
index 6ed8a9892d0..45414b2c68f 100644
--- a/infra/relay/src/worker.ts
+++ b/infra/relay/src/worker.ts
@@ -576,3 +576,5 @@ export const layer = Api.make(
),
),
);
+
+export default layer;
diff --git a/knip.jsonc b/knip.jsonc
index 7efe20acfb0..c2093737fd9 100644
--- a/knip.jsonc
+++ b/knip.jsonc
@@ -133,7 +133,8 @@
],
},
"infra/relay": {
- "entry": ["alchemy.run.ts!", "src/persistence/schema.ts!"],
+ // Alchemy loads src/worker.ts as the Worker entry and reads its default export.
+ "entry": ["alchemy.run.ts!", "src/persistence/schema.ts!", "src/worker.ts!"],
},
"packages/*": {
// These workspace packages are private to this monorepo.