Skip to content

[bug] Reduce memory consumption in the build process #2505

@Kitenite

Description

@Kitenite

Describe the bug

When building, we are building the project under /api/trpc/publish.deployment.run which is using a lot of memory right now (over 2GB for large projects). We need to reduce this or vercel will kill the process for out-of-memory.

Note: Most of the memory consumption comes from serializing files in memory. With a large enough project, this will load the entire repo into memory, causing this issue.

Image

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