mirror of https://github.com/msgbyte/tailchat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
310 B
TypeScript
14 lines
310 B
TypeScript
/**
|
|
* Determine whether it is a development environment
|
|
*/
|
|
export function isDev(): boolean {
|
|
return process.env.NODE_ENV === 'development';
|
|
}
|
|
|
|
/**
|
|
* Add github resource proxy to optimize chinese access speed
|
|
*/
|
|
export function withGhProxy(url: string): string {
|
|
return `https://ghproxy.com/${url}`;
|
|
}
|