Skip to content

Package is incompatible with Astro's Cloudflare adapter #6

Open
@jrencz

Description

@jrencz

Hi,

This is not necessarily a "bug", but that's the only issue template available.

I tried combining this package with https://docs.astro.build/en/guides/integrations-guide/cloudflare/ but with no success. It, and its dependencies don't follow the requirement to

have all node internals' specifiers prefixed with node:.

Here's a list of those that might be prefixed and may get this closer to working in workers environment:

  • assert
  • path
  • crypto
  • util
  • buffer
  • stream

But I also see those:

  • fs
  • fs/promises
  • os

and those don't have support in Cloudflare (see https://developers.cloudflare.com/workers/runtime-apis/nodejs#nodejs-api-polyfills)

There's also a dependency on https://www.npmjs.com/package/snappy and it's a hard no-go for Workers runtime, because it's written in Rust and is published as NAPI node extension.

Question: is making this package compatible with workers (or extracting its subset which might at some point become) is considered "in scope"?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions