mirror of
https://github.com/sunniejs/vue-h5-template.git
synced 2026-05-22 19:15:59 +08:00
12 lines
472 B
TypeScript
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 = '';
|