Deploying Functions on the Cloudflare Workers/Vercel Edge Runtime to interact with the FGA SDK
Currently the SDK depends on the Node.js http module. This prevents us from leveraging the SDK in these newer javascript runtimes.
Describe the ideal solution
A clear and concise description of what you want to happen.
Alternatives and current workarounds
We would have to manually craft the requests to the FGA APIs to interact with the service.
Additional context
When calling an SDK function such as:
const result = await fgaClient.listObjects({ user, relation, type, });
we receive the following exception being thrown:
[Error: The edge runtime does not support Node.js 'http' module.
Deploying Functions on the Cloudflare Workers/Vercel Edge Runtime to interact with the FGA SDK
Describe the ideal solution
Alternatives and current workarounds
Additional context
When calling an SDK function such as:
const result = await fgaClient.listObjects({ user, relation, type, });we receive the following exception being thrown:
[Error: The edge runtime does not support Node.js 'http' module.