// utils/fetchWithTimeout.js // Native fetch wrapper with AbortSignal timeout (Node 20+). export async function fetchWithTimeout(url, options = {}, timeoutMs = 15000) { const response = await fetch(url, { ...options, signal: AbortSignal.timeout(timeoutMs), }); return response; } export default fetchWithTimeout;