mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-22 08:45:12 +01: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');
|
|
}
|