env.ts 491 B

12345678910111213141516
  1. const env = import.meta.env.VITE_APP_ENV;
  2. let envApiUrl = "";
  3. if (env === "production") {
  4. envApiUrl = `https://${import.meta.env.VITE_APP_DOMAIN_PROD}`;
  5. } else if (env === "staging") {
  6. envApiUrl = `https://${import.meta.env.VITE_APP_DOMAIN_STAG}`;
  7. } else {
  8. envApiUrl = `http://${import.meta.env.VITE_APP_DOMAIN_DEV}`;
  9. }
  10. export const apiUrl = envApiUrl;
  11. export const appName = import.meta.env.VITE_APP_NAME;
  12. export const openRegisration = import.meta.env.VITE_APP_OPEN_REGISRATION;