fix: 2.0.2-beta.4 [wallet api url fix]

This commit is contained in:
junchi.zhang
2026-04-15 23:02:59 +08:00
parent 25ce2606da
commit 7ab7965cfb
3 changed files with 4 additions and 8 deletions
+2 -6
View File
@@ -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
+1 -1
View File
@@ -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
View File
@@ -1,6 +1,6 @@
{
"name": "pinme",
"version": "2.0.2-beta.3",
"version": "2.0.2-beta.4",
"publishConfig": {
"access": "public"
},