Skip to content

Client's Proxy option does not work in ElectronΒ #152

@KenCorma

Description

@KenCorma

In our Electron app we use Fal-Client in the Main side of the app to better interface with user's filesystem.
However this flag here will prevent fal-client from using a proxy as window is never exposed in the main thread.

// when running on the server, we don't need to proxy the request
if (typeof window === "undefined") {
return passthrough;

I know you can make custom middleware for more advanced usage like us , and I don't have a solution (other than removing this ), but I just wanted to to point this doesn't work for our use case.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions