mirror of
https://github.com/glitternetwork/pinme.git
synced 2026-08-30 17:58:49 +08:00
fix: 2.0.2-beta.4 [wallet api url fix]
This commit is contained in:
+2
-6
@@ -13,15 +13,11 @@ function readNumberEnv(name: string, fallback: number): number {
|
||||
return Number.isFinite(parsed) ? parsed : fallback;
|
||||
}
|
||||
|
||||
const DEFAULT_PINME_API_BASE = 'http://ipfs-proxy.opena.chat/api/v4';
|
||||
const DEFAULT_IPFS_API_URL = 'https://ipfs.glitterprotocol.dev/api/v2';
|
||||
const DEFAULT_PINME_WEB_URL = 'http://localhost:5173';
|
||||
|
||||
export const APP_CONFIG = {
|
||||
pinmeApiBase: trimTrailingSlash(
|
||||
process.env.PINME_API_BASE || DEFAULT_PINME_API_BASE,
|
||||
),
|
||||
ipfsApiUrl: trimTrailingSlash(process.env.IPFS_API_URL || DEFAULT_IPFS_API_URL),
|
||||
pinmeApiBase: trimTrailingSlash(process.env.PINME_API_BASE || ''),
|
||||
ipfsApiUrl: trimTrailingSlash(process.env.IPFS_API_URL || ''),
|
||||
carApiBase: trimTrailingSlash(
|
||||
process.env.CAR_API_BASE
|
||||
|| process.env.IPFS_API_URL
|
||||
|
||||
@@ -217,7 +217,7 @@ export async function getWalletBalance(
|
||||
try {
|
||||
const client = createPinmeApiClient();
|
||||
const { data } = await client.get<WalletBalanceResponse>(
|
||||
'/api/v4/pay/wallet/balance',
|
||||
'/pay/wallet/balance',
|
||||
{
|
||||
headers: {
|
||||
'authentication-tokens': authToken,
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "pinme",
|
||||
"version": "2.0.2-beta.3",
|
||||
"version": "2.0.2-beta.4",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user