Skip to content

Files

Latest commit

 

History

History
19 lines (12 loc) · 336 Bytes

no-deprecated-astro-fetchcontent.md

File metadata and controls

19 lines (12 loc) · 336 Bytes

Pattern: Use of deprecated Astro.fetchContent()

Issue: -

Description

Disallow using deprecated Astro.fetchContent().

Example of incorrect code:

let allPosts = Astro.fetchContent('./posts/*.md');

Example of correct code:

let allPosts = await Astro.glob('./posts/*.md');