Remix apps can be run on Node.js, Deno, Cloudflare, Bun, or any JS runtime in general. I saw the package always use @remix-run/node so it can't be used on any other JS runtime.
Is the core of WorkOS not compatible with other JS runtimes? If it could run on other runtimes, you could import from @remix-run/server-runtime package as this is a runtime agnostic package, and then adjust the code to support other runtimes requirements, e.g. on CF you can't use process.env so any env variable should be received as an argument of a function.
Remix apps can be run on Node.js, Deno, Cloudflare, Bun, or any JS runtime in general. I saw the package always use
@remix-run/node
so it can't be used on any other JS runtime.Is the core of WorkOS not compatible with other JS runtimes? If it could run on other runtimes, you could import from
@remix-run/server-runtime
package as this is a runtime agnostic package, and then adjust the code to support other runtimes requirements, e.g. on CF you can't useprocess.env
so any env variable should be received as an argument of a function.