Skip to content
Back

Best practice for AppWrite functions and version control?

  • 0
  • Functions
nathan
28 Oct, 2024, 08:07

I'm transferring from Firebase and I'm used to being able to put multiple exports in my single node project and firebase would see them all as different functions. What's the best practice for AppWrite regarding having a single git reop? I originally thought I could have one root folder as my functions project, then mutliple sub-folders representing each function but obviously the function won't be able to see the package.json file when it goes to build which there are hacks around this but it sees very fiddly and was wondering if there is a better practice for this?

TL;DR
Developers transferring from Firebase to AppWrite are questioning the best practice for functions and version control. They are used to being able to put multiple exports in a single node project with Firebase. They want to know if it's possible to have one root folder as their functions project with multiple sub-folders for each function. This setup may create issues with package.json file visibility. A cleaner solution may be to have separate repositories for each AppWrite function to avoid complex hacks.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more