const isDev = import.meta.env.DEV; // TODO: Rename API_ENDPOINT to API_HOST in next major version // Current API endpoint configuration - uses different values for dev/prod const API_ENDPOINT = isDev ? import.meta.env.VITE_API_ENDPOINT : import.meta.env.VITE_PROD_API_ENDPOINT; const constants = { // Base API endpoint URL (e.g. '//localhost:7272' or '//api.example.com') // Used to construct all API request URLs API_ENDPOINT, SIGN_IN: `${API_ENDPOINT}/api/party-user-auth/sign-in`, PARTY_USER_JOIN_EVENT: `${API_ENDPOINT}/api/event/partyUserJoinEvent`, }; if (!constants.API_ENDPOINT) { throw new Error('Please check, the API_ENDPOINT is empty'); } export { isDev }; export default constants;