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
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?
- Different appwrite IDs are getting expos...
File_URL_FORMAT= https://cloud.appwrite.io/v1/storage/buckets/[BUCKET_ID]/files/[FILE_ID]/preview?project=[PROJECT_ID] I'm trying to access files in my web app...
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...