chore: update getCurrentDomain to return undefined when not allowing localhost

This commit is contained in:
2024-10-05 11:52:42 -04:00
parent 44d579ee6d
commit 85712ff0cf
2 changed files with 22 additions and 6 deletions

View File

@@ -18,11 +18,7 @@ export async function maybeScheduleNextAiringEpisode(
aniListId: number,
) {
const domain = getCurrentDomain(req);
if (
domain.includes("localhost") ||
domain.includes("127.0.0.1") ||
domain.includes("192.168.1")
) {
if (!domain) {
return;
}