Skip to content

pg-cloudflare does not work with vite-plugin-cloudflare #9668

Closed
brianc/node-postgres
#3498
@TrySound

Description

@TrySound

What versions & operating system are you using?

wrangler v22.16.0, vite-plugin @1.7.2

Please provide a link to a minimal reproduction

No response

Describe the Bug

pg-cloudflare is using "cloudflare" export condition

https://github.com/brianc/node-postgres/blob/master/packages/pg-cloudflare/package.json#L14-L17

However plugin has hardcoded "workerd" condition and does not allow change it

https://github.com/cloudflare/workers-sdk/blob/main/packages/vite-plugin-cloudflare/src/cloudflare-environment.ts#L128

See also brianc/node-postgres#3493

Please provide any relevant error logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that isn't working

    Type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions