diff --git a/src/pages/now/and-then/index.astro b/src/pages/now/and-then/index.astro index a0b8c68..b4ad12e 100644 --- a/src/pages/now/and-then/index.astro +++ b/src/pages/now/and-then/index.astro @@ -2,8 +2,12 @@ import Layout from '../../../layouts/Layout.astro' import Footer from '../../../components/Footer.astro' import Posts from '../../../components/Posts.astro' +import type { AstroInstance } from 'astro' -const posts = await Astro.glob('./posts/*.astro') +// const posts = await Astro.glob('./posts/*.astro') +const posts: AstroInstance[] = Object.values( + import.meta.glob('./posts/*.astro', { eager: true }) +) const title = 'Previously...' --- @@ -17,12 +21,6 @@ const title = 'Previously...'