diff --git a/example/src/App.tsx b/example/src/App.tsx index a90e67d..1e9cb56 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -312,7 +312,7 @@ export default function App() { }); console.log('res', res); const text = await res.text(); - const pref = res.headers?.nitroPrefetched; + const pref = res.headers.get('nitroPrefetched'); setPrefetchInfo( `Fetched. nitroPrefetched=${pref ?? 'null'} len=${text.length}` );