mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-12 22:46:58 +03:00
feat: migrate yacd url to dynamic
This commit is contained in:
4
fe-app-podkop/src/helpers/getBaseUrl.ts
Normal file
4
fe-app-podkop/src/helpers/getBaseUrl.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export function getBaseUrl(): string {
|
||||
const { protocol, hostname } = window.location;
|
||||
return `${protocol}//${hostname}`;
|
||||
}
|
||||
1
fe-app-podkop/src/helpers/index.ts
Normal file
1
fe-app-podkop/src/helpers/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './getBaseUrl';
|
||||
@@ -3,3 +3,4 @@
|
||||
|
||||
export * from './validators';
|
||||
export * from './constants';
|
||||
export * from './helpers';
|
||||
|
||||
Reference in New Issue
Block a user