vue-h5-template/build/constant.ts
2026-04-30 19:46:33 +08:00

12 lines
472 B
TypeScript

/** API request prefix — matches the proxy key in vite server config */
export const API_BASE_URL = '/api';
/** Mock API prefix — used by vite-plugin-mock */
export const MOCK_API_BASE_URL = '/mock-api';
/** Real backend URL for proxy — set to your actual backend address, e.g. 'http://localhost:8080' */
export const API_TARGET_URL = '';
/** Mock server URL for proxy — leave empty when using vite-plugin-mock locally */
export const MOCK_API_TARGET_URL = '';