TheDancingCode/password-protected-pages-on-netlify

Where should the functions folder be?

juanfernandes opened this issue · 1 comments

I have in my repo:

/src/
netlify.toml
package.json
etc

Should the functions folder be in a folder called /netlify/ or just /functions/ at the same level as /src/

According to the documentation, the default functions folder is /netlify/functions/, but you can adjust to the desired location in your netlify.toml file:

[functions]
  directory = "my_directory"

My folder is /functions/ at the same level as /src/, as specified in my netlify.toml file.