[FIX] Reviwed comments on the RP
This commit is contained in:
+1
-3
@@ -66,9 +66,7 @@ export class ValidationError extends Error {
|
|||||||
|
|
||||||
export default class API {
|
export default class API {
|
||||||
public static readonly baseUrl =
|
public static readonly baseUrl =
|
||||||
process.env.NODE_ENV != 'development' && Platform.OS === 'web'
|
Platform.OS === 'web' ? '/api' : process.env.EXPO_PUBLIC_API_URL!;
|
||||||
? '/api'
|
|
||||||
: 'https://nightly.chroma.octohub.app/api';
|
|
||||||
public static async fetch(
|
public static async fetch(
|
||||||
params: FetchParams,
|
params: FetchParams,
|
||||||
handle: Pick<Required<HandleParams>, 'raw'>
|
handle: Pick<Required<HandleParams>, 'raw'>
|
||||||
|
|||||||
Reference in New Issue
Block a user