Simplify URL handling

This commit is contained in:
trevor-signal
2025-12-08 13:17:46 -05:00
committed by GitHub
parent fc38003652
commit 62b7950b7e

View File

@@ -522,9 +522,8 @@ async function handleUrl(rawTarget: string) {
return;
}
const { protocol, hostname } = parsedUrl;
const isDevServer =
process.env.SIGNAL_ENABLE_HTTP && hostname === 'localhost';
const { protocol } = parsedUrl;
const isDevServer = process.env.SIGNAL_ENABLE_HTTP;
if ((protocol === 'http:' || protocol === 'https:') && !isDevServer) {
try {