chore: Reduce slots API serverless memory configuration (#12270)

* chore: Reduce API serverless memory configuration

* Only limit to slots for now

* Moved the vercel.json file to root

* More fun with vercel.json files

* Trying new pattern

* Using a pattern that matches the Vercel deployment summary function name

* Trying to set the memory directly in the handler file

* Trying it on all functions

* Changed glob

* Moved vercel.json file to root

* Trying a new glob

* Give me all functions

* Trying just * for all functions

* Trying again...

* Putting the config on the defaultResponder

* Seeing if web app takes setings

* Changed .js to .ts

* Changed root path

* Added back vercel.json now that the path is changed

* Reduced API slots memory to 512

* Removed unneeded code changes'

* Update defaultResponder.ts
This commit is contained in:
Keith Williams authored and GitHub committed 2023-11-13 15:37:26 +00:00
1 parent 4135c1038e
commit 5ab0b85e52
2 files changed
+16 -1

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
{
"functions": {
"pages/api/slots/*.ts": {
"memory": 512
}
}
}
+9 -1
View File
@@ -4,5 +4,13 @@
"path": "/api/cron/calendar-cache-cleanup",
"schedule": "0 5 * * *"
}
]
],
"functions": {
"pages/api/trpc/public/[trpc].ts": {
"memory": 768
},
"pages/api/trpc/slots/[trpc].ts": {
"memory": 768
}
}
}