import { PRIORITY } from "../../shared/types"; import { isProd } from "./index"; export function getBackendGraphqlUrl() { return isProd() ? "https://prowess-backend.herokuapp.com/graphql" : "http://localhost:4000/graphql"; } export function getBackendUrl() { return isProd() ? "https://prowess-backend.herokuapp.com" : "http://localhost:4000"; } export function getBackendSubscriptionsUrl() { return isProd() ? "wss://prowess-backend.herokuapp.com/graphql" : "ws://localhost:4000/graphql"; } export function getFrontendUrl() { return isProd() ? "https://app.prowess.app" : "http://localhost:3000"; } export function getPriorityColor(priority: string) { switch (priority) { case PRIORITY.P0: return "#D05959"; case PRIORITY.P1: return "#DAA04A"; case PRIORITY.P2: return "#DACB45"; case PRIORITY.P3: default: return "#4879D9"; } }