Open blubberbo opened 2 years ago
I don't think we are going to do this anymore, because it throws errors due to the callbacks not being functions. If we are going to consolidate the files into folders, we're going to have to find a different way
It looks like we might be able to move the files into folders, to make them easier to read in the dev environment and then move them around during deployment, although I don't know how to move them during deployment.
Note: we'd also need to do something about when running dev (netlify dev
), which doesn't actually run a build
Mirror the file structure here https://github.com/mansour-ahmed/tutorial-build-a-serverless-database-using-faunadb-and-netlify-functions/tree/master/src (also see https://nordschool.com/build-a-serverless-database-using-faunadb-and-netlify-functions/) to have all crud operations routed in one file (but the code in a nested directory)