Skip to content

Commit

Permalink
reduce vercel memory limits
Browse files Browse the repository at this point in the history
  • Loading branch information
lkostrowski committed Oct 7, 2024
1 parent e850b98 commit d866cee
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/mean-apricots-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"app-avatax": patch
---

Set max memory limits for Webhooks to be 256MB. Before that, it was a default 1769MB. In case of Vercel deployment this will reduce pricing via GB-hours 7 times
9 changes: 9 additions & 0 deletions apps/avatax/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"functions": {
"src/pages/api/webhooks/*": {
"memory": 256,
"maxDuration": 20
}
}
}

0 comments on commit d866cee

Please sign in to comment.