mirror of
https://github.com/paricafe/misskey.git
synced 2025-01-07 22:20:49 -06:00
09764b909b
* enhance(dev): non-production環境でhttpサーバー間でもユーザー、ノートの連合が可能なように * refactor (use checkHttps) * MISSKEY_WEBFINGER_USE_HTTP * Environment Variable readme * NEVER USE IN PRODUCTION * fix punyHost
4 lines
163 B
TypeScript
4 lines
163 B
TypeScript
export function checkHttps(url: string) {
|
|
return url.startsWith('https://') ||
|
|
(url.startsWith('http://') && process.env.NODE_ENV !== 'production');
|
|
}
|