Skip to content

Cloudflare deploy fail - SQLLite wasm file #3290

Open
@ljcremer

Description

@ljcremer

I am deploying to Cloudflare and my deployments are failing with the following error:

Error: Failed to publish your Function. Got error: Your Worker exceeded the size limit of 3 MiB. Refer to the Workers documentation (https://developers.cloudflare.com/workers/observability/errors/#errors-on-worker-upload) for more details.

It includes the following chunks which seems to be related to SQLite:
wasm/index_bg-dd4dd8881e2df4e6.wasm │ compiled-wasm │ 2420.51 KiB
wasm/onig-b1644a9e745f1309.wasm │ compiled-wasm │ 455.67 KiB

Since I am using D1 on Cloudflare it should not be required to have this?

How can I remove this from the build?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions