withoutVite(); // Bypass the DNS-based SSRF guard during tests. Feature tests use // Http::fake() with synthetic hosts (e.g. cdn.example.com) that // wouldn't resolve to public IPs; the real guard is exercised by // tests/Unit/Services/Post/DnsUrlSafetyGuardTest in isolation. $this->app->bind(UrlSafetyGuard::class, fn () => new class implements UrlSafetyGuard { public function isSafe(string $url): bool { return true; } }); } }