feat: introduce runtime path (#132)

This commit is contained in:
samanhappy
2025-05-27 18:34:23 +08:00
committed by GitHub
parent 268ce5cce6
commit a1047321d1
17 changed files with 226 additions and 46 deletions

View File

@@ -4,7 +4,7 @@ import {
RegisterCredentials,
ChangePasswordCredentials,
} from '../types';
import { getApiUrl } from '../utils/api';
import { getApiUrl } from '../utils/runtime';
// Token key in localStorage
const TOKEN_KEY = 'mcphub_token';

View File

@@ -1,6 +1,6 @@
import { useEffect, useState } from 'react';
import { getToken } from './authService'; // Import getToken function
import { getApiUrl } from '../utils/api';
import { getApiUrl } from '../utils/runtime';
export interface LogEntry {
timestamp: number;