COS301-SE-2024 / occupi

A system to record and predict office occupancy on a day to day basis
https://occupi.framer.ai/
MIT License
12 stars 0 forks source link

[TASK] Differentiate api endpoints on frontend between dev and prod #111

Open waveyboym opened 4 months ago

waveyboym commented 4 months ago

Task Request It has been noted that when endpoints are called, hard coded string values are used for the main domain. We have dev.occupi.tech(which contains unstable endpoints that are mainly alpha) and occupi.tech. Your task is to:

@u21631532 and @Tinashe-Austin, please tick off as you complete each task by clicking on the task you are done with in this comment

Additional info @Tinashe-Austin , please refer to this article as a starting point to familiarize yourself with the content: https://vitejs.dev/guide/env-and-mode @u21631532, @KamogeloMoeketse , please refer to this article as a starting point to familiarize yourself with the content: https://docs.expo.dev/guides/environment-variables/

u21631532 commented 3 months ago

does this issue need to be closed, i believe mobile has completed this, not too sure about web @waveyboym and @Tinashe-Austin

waveyboym commented 2 months ago

okay @u21631532 , @Tinashe-Austin have you differentiated domains when the app runs in dev and prod environments to use dev.occupi.tech for dev and occupi.tech for prod

waveyboym commented 2 months ago

@Tinashe-Austin please may you offer a response as to whether or not you resolved this issue so we can close it. Thank you