Skip to content

Commit 0900f9e

Browse files
committed
working search
1 parent 6eabc26 commit 0900f9e

3 files changed

Lines changed: 63 additions & 2497 deletions

File tree

‎apps/codingcatdev/src/lib/server/content.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const LIMIT = 20;
66

77
// Force PREVIEW off by setting false in .env
88
// Will show for vercel previews unless forced to false
9-
const preview = env.PREVIEW === "false" ? false : env.VERCEL_ENV === "preview" || import.meta.env.DEV;
9+
export const preview = env.PREVIEW === "false" ? false : env.VERCEL_ENV === "preview" || import.meta.env.DEV;
1010

1111
export const parseModules = async (modules: Record<string, () => Promise<unknown>>) => {
1212
const contentList: Content[] = [];

‎apps/codingcatdev/src/routes/api/content.json/+server.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { json } from '@sveltejs/kit';
44
export const prerender = true;
55

66
/** @type {import('./$types').RequestHandler} */
7-
export function GET() {
7+
export const GET = async () => {
88
return json({
9-
blocks: content()
9+
blocks: await content()
1010
});
1111
}

0 commit comments

Comments
 (0)