I am wondering if the function Id (as well as database Id and collection Id) needs to be a build-time configuration parameter, or it can be found out run-time? What is the best approach?
It's typically build-time. However, you can use a remote config service or a public collection to serve that info
Thanks @Steven, I was thinking similarly, namely to deploy a cloud function that returns the Ids, but nevertheless, the project Id and that function id shall be 'hard-coded'.
i don't think i'd use an Appwrite function for this if it's the same value for everyone.
Regardless of whatever approach you use. there will be something hardcoded in the app
Agree, I was wondering if such an approach would ease new deployments. Thanks!
Recommended threads
- Why does this happen?
`AppwriteException: general_argument_invalid, Invalid `secret` param: Value must be a valid string and at least 1 chars and no longer than 256 chars (400)` the...
- How to properly implement custom domain?...
- Site deployment does not work.
I can change a file, deploy, change does not take effect. Delete file in repo, push changes,deploy. Old file remains undeleted Duplicate file, rename it, push,...