refactor: remove draft filtering from public routes

This commit is contained in:
Lewis Wynne 2026-02-08 17:17:56 +00:00
parent aa349ed7c9
commit 828d637c63
6 changed files with 6 additions and 6 deletions

View file

@ -5,7 +5,7 @@ import { getSlug, enrichPostsWithDates } from '../lib/md';
import { getTxtFiles } from '../lib/txt';
export async function GET(context: APIContext) {
const rawPosts = await getCollection('md', ({ data }) => data.draft !== true);
const rawPosts = await getCollection('md');
const posts = enrichPostsWithDates(rawPosts);
const bookmarks = await getCollection('bookmarks');
const txtFiles = getTxtFiles();