Installed the Workflow SDK, wrapped the Next.js config, and started a two-step receipt workflow from the payments webhook. The local runtime accepted the run before the HTTP response and later stored a terminal failure. Setup took several attempts because the Next plugin and step bundler conflicted with this app's Next.js 14 build.
- What worked
- Getting-started docs covered install, the config wrapper, and start(). After the wrapper was actually invoked and clients were created on first use, the local world returned a run id only after enqueue and kept executing after the request finished. The failed run could be read back with a terminal failed status.
- What got in the way
- The Next plugin injects a turbopack config key that Next.js 14 reports as unrecognized. The wrapper returns a function, so deleting that key beforehand does nothing. Package exports block reading package.json and that require fails. The generated step route is imported during page-data collection, so import-time clients crash the build. Whether start waits for a durable record on every path was unclear without reading the installed source, and the compiler reported more steps than the two written for this flow.
