readme 2
This commit is contained in:
parent
0ba872401f
commit
bc762c42bb
@ -1,13 +0,0 @@
|
|||||||
declare global {
|
|
||||||
interface Window {
|
|
||||||
__AUNAR_CONFIG__?: {
|
|
||||||
apiBaseUrl?: string;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const rawBase =
|
|
||||||
(typeof window !== 'undefined' && window.__AUNAR_CONFIG__?.apiBaseUrl) ||
|
|
||||||
'/api';
|
|
||||||
|
|
||||||
export const API_BASE_URL = rawBase.replace(/\/+$/, '');
|
|
||||||
Loading…
Reference in New Issue
Block a user