Update requirement files with new feature templates and fix backend API error message, along with mobile project config updates and documentation improvements
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
const constants = { API_ENDPOINT: import.meta.env.VITE_API_ENDPOINT };
|
||||
const isDev = import.meta.env.DEV;
|
||||
const constants = {
|
||||
API_ENDPOINT: isDev ? import.meta.env.VITE_API_ENDPOINT : import.meta.env.VITE_PROD_API_ENDPOINT,
|
||||
};
|
||||
|
||||
if (!constants.API_ENDPOINT) {
|
||||
throw new Error('Please check, the API_ENDPOINT is empty');
|
||||
}
|
||||
|
||||
export { isDev };
|
||||
export default constants;
|
||||
|
Reference in New Issue
Block a user