Files
hyperframes/packages/core/src/distributedFps.ts
T
Miguel Ángel b18b3e958a fix(gcp-cloud-run): the BeginFrame contract image resolves the engine's core import (#5785)
* fix(gcp-cloud-run): the BeginFrame contract image resolves the engine's core import

The engine config imports the distributed fps set from @hyperframes/core, and the contract stage of the GCP image copies only parsers and engine sources, so the import failed at build time. The set now lives in a small core subpath (@hyperframes/core/distributed-fps) that the engine imports like its other light core imports, and the contract stage copies core like parsers. The core root export is unchanged.

* style(core): format package.json
2026-10-17 11:13:06 +00:00

8 lines
381 B
TypeScript

/** Integer rates the distributed renderer (Lambda, Cloud Run) accepts; fractional fps renders in-process only. */
export const DISTRIBUTED_FPS = [24, 25, 30, 60] as const;
export type DistributedFps = (typeof DISTRIBUTED_FPS)[number];
export function isDistributedFps(value: unknown): value is DistributedFps {
return (DISTRIBUTED_FPS as readonly unknown[]).includes(value);
}