Skip to content

Unable to add memory limit to functions #4100

Discussion options

You must be logged in to vote

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:

{
  "functions": {
    "src/pages/**/*": {
      "memory": 256,
      "maxDuration": 5
    }
  }
}

Thank you for your help!

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by styfle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants