Is it possible to have workflows defined in a pages worker?
Is it possible to have workflows defined in a pages worker?


src/index.ts file) env.Production vs env.Preview in wrangler.toml?
src/index.tsenv.Productionenv.Previewwrangler.tomlThe execution of the Workflow instance was terminated, as a step threw an NonRetryableError and it was not handledexport const stepEffect = <A, E>(
step: { do: (name: string, fn: () => Promise<any>) => Promise<any> },
stepName: string,
effectFn: Effect.Effect<A, E, never>,
): Effect.Effect<A, E, never> => {
return Effect.promise(() => executeRpcWithCleanup(() => step.do(stepName, async () => Effect.runPromise(effectFn))))
}