Skip to content

Got error: Your Functions script is over the 1 MiB size limit (workers.api.error.script_too_large) #68

@s1lviu

Description

@s1lviu

Hi, I try to deploy a (tiny) Next app to Cloudflare pages, all seems ok, but in the end, I receive the following:

15:18:09.647 | ⚡️ Generated '.vercel/output/static/_worker.js'.
-- | --
15:18:09.749 | Finished
15:18:09.749 | Found _worker.js in output directory. Uploading.
15:18:09.791 | Validating asset output directory
15:18:19.787 | Success: Assets published!
15:18:23.068 | Error: Failed to publish your Function. Got error: Your Functions script is over the 1 MiB size limit (workers.api.error.script_too_large)

PS: The build command has the minify flag specified: npx @cloudflare/next-on-pages --experimental-minify
Thanks!

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