chore: build
This commit is contained in:
+3
-3
@@ -15,7 +15,7 @@
|
||||
"simulator": true
|
||||
},
|
||||
"env": {
|
||||
"API_URL": "https://5.181.0.112.nip.io"
|
||||
"EXPO_PUBLIC_API_URL": "https://5.181.0.112.nip.io"
|
||||
},
|
||||
"channel": "development"
|
||||
},
|
||||
@@ -25,7 +25,7 @@
|
||||
"buildType": "apk"
|
||||
},
|
||||
"env": {
|
||||
"API_URL": "https://5.181.0.112.nip.io"
|
||||
"EXPO_PUBLIC_API_URL": "https://5.181.0.112.nip.io"
|
||||
},
|
||||
"channel": "preview"
|
||||
},
|
||||
@@ -36,7 +36,7 @@
|
||||
"buildType": "apk"
|
||||
},
|
||||
"env": {
|
||||
"API_URL": "https://5.181.0.112.nip.io/"
|
||||
"EXPO_PUBLIC_API_URL": "https://mln-uber.club"
|
||||
},
|
||||
"channel": "production"
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ import type {
|
||||
import { getToken } from "../auth/tokenStorage";
|
||||
import { extractUsernameFromToken } from "../auth/jwtUtils";
|
||||
|
||||
const V1 = "https://mln-uber.club/api/v1";
|
||||
const V1 = `${process.env.EXPO_PUBLIC_API_URL ?? "https://mln-uber.club"}/api/v1`;
|
||||
|
||||
export const getJwtUsername = async (): Promise<string | null> => {
|
||||
const token = await getToken();
|
||||
|
||||
Reference in New Issue
Block a user