Unable to add memory limit to functions #4100
-
I'm unable to add memory limit to the functions. I'm trying to add a memory limit of 256MB, but the Functions Deployment still tells me the memory size is 1GB. My {
"functions": {
"src/pages/api/*": {
"memory": 256,
"maxDuration": 10
}
}
} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I think you need too remove {
"functions": {
"pages/api/**/*.js": {
"memory": 256
}
}
} If you are using {
"functions": {
"pages/**/*": {
"memory": 256
}
}
}
|
Beta Was this translation helpful? Give feedback.
-
Hey @styfle, thanks for the answer. I tried a couple of different configurations with that, and it seems like I do need the At the end, this worked for me: {
"functions": {
"src/pages/**/*": {
"memory": 256,
"maxDuration": 5
}
}
} Thank you for your help! |
Beta Was this translation helpful? Give feedback.
Hey @styfle, thanks for the answer. I tried a couple of different configurations with that, and it seems like I do need the
src
in there (since my code is in the src folder), it was just the double**
that I was missing. My bad.At the end, this worked for me:
Thank you for your help!