You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: routes/api/search.ts
+76-1Lines changed: 76 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ interface SearchResult {
11
11
title: string;
12
12
url: string;
13
13
excerpt: string;
14
-
type: "doc"|"api"|"example"|"blog"|"std";
14
+
type: "doc"|"api"|"example"|"blog"|"std"|"page";
15
15
label: string;
16
16
score: number;
17
17
highlights: string[];
@@ -71,6 +71,9 @@ async function buildIndex(): Promise<SearchResult[]> {
71
71
returnindexCache;
72
72
}
73
73
74
+
// Reset Orama DB to prevent duplicate document errors
75
+
oramaDb=null;
76
+
74
77
constitems: RawIndexItem[]=[];
75
78
76
79
try{
@@ -220,6 +223,72 @@ async function buildIndex(): Promise<SearchResult[]> {
220
223
console.warn("Failed to index std repo:",e);
221
224
}
222
225
226
+
// Index static pages (home, satellites, etc.)
227
+
try{
228
+
// Home page
229
+
items.push({
230
+
title: "Andromeda - Modern JavaScript & TypeScript Runtime",
231
+
url: "/",
232
+
excerpt:
233
+
"A modern, fast, and secure JavaScript & TypeScript runtime built from the ground up in Rust. Zero-config TypeScript support, hardware-accelerated graphics, comprehensive Web APIs, and developer-first tooling.",
234
+
type: "page",
235
+
keywords: [
236
+
"home",
237
+
"andromeda",
238
+
"javascript",
239
+
"typescript",
240
+
"runtime",
241
+
"rust",
242
+
"nova engine",
243
+
"gpu accelerated",
244
+
"memory safe",
245
+
"wintertc",
246
+
],
247
+
body:
248
+
"Andromeda JavaScript TypeScript runtime Rust Nova Engine zero config GPU accelerated memory safe WinterTC compliant fast secure modern developer tooling Web APIs hardware acceleration",
"Lightweight, purpose-built executables designed for containerized environments and microservice architectures. Each satellite focuses on a single capability for optimal performance.",
0 commit comments