Web Developer
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?
Votes
0
Replies
4
Participants
Unknown
Messages
5
Web Developer
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
Web Developer
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
Web Developer
Agree, I was wondering if such an approach would ease new deployments. Thanks!