Skip to content

Some libraries in lib are server-only #1774

@riccardobl

Description

@riccardobl

Follow-up of #1727 (comment)
I am listing here the libraries in lib/ that cannot be used in the client because they depend on the Node environment.

  • lib/proxy.js : imports node https and http
  • lib/cln.js : imports lib/proxy
  • lib/rss.js imports api/ssrApollo
  • lib/lnd.js needs access to the filesystem

@huumn suggested that this code can go under api/lib.

Refactoring now would cause conflicts with the pending PRs, so I am using this issue to track them for a later time when there will be fewer pending changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backburnerpostpone consideration of ticket

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions