patrickalima98
Explore posts from serversDTDrizzle Team
•Created by patrickalima98 on 2/19/2024 in #help
Reduce drizzle dist folder for serverless (Deno deploy)
Hi, I'm using Drizzle on Deno Deploy and it's working great in terms of library!
But the size of the
drizzle-orm
dist is about 5.3 MB, which is too big and bad for cold boot in deno deploy!
In my case, I have a project where I'm experiencing 2-4 second cold starts because the biggest dependency I have is now drizze-orm. Without it, I have 200 - 400ms cold start.
My current dependencies are:
- drizzle-orm: 5.3 MB
- ramda: 870Kb
In the case of drizze, I noticed that the largest folders are: pg-core
1MB and mysql-core
1.2MB. I'm not using sqlite, expo, aws, mysql, best-sqlt etc... I would like to know if there is an option to externalize these folders as external dependencies or if I can ignore these folders in the download to have a smaller node_modules size?1 replies