This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
|
import { CDN_URI } from 'config/cdn';
|
|
|
|
const buildURL = (type: 'cdn', str: string): string => {
|
|
switch (type) {
|
|
case 'cdn':
|
|
return CDN_URI + str;
|
|
}
|
|
return str;
|
|
};
|
|
|
|
export default buildURL;
|