mirror of
https://github.com/warmbly/warmbly.git
synced 2026-09-04 16:02:01 +00:00
3236ffc459
Restructure the docs navigation into product-focused pages, add automation expression reference content, and refresh related template and personalization surfaces.
14 lines
571 B
TypeScript
14 lines
571 B
TypeScript
import { source } from '@/lib/source';
|
|
import { createFromSource } from 'fumadocs-core/search/server';
|
|
|
|
// Build the search index at build time and serve it as a static JSON, so search
|
|
// works on a statically-exported / CDN-hosted build (no running server route).
|
|
// The client is set to `type: 'static'` in app/layout.tsx, which loads this
|
|
// index once and runs Orama in the browser.
|
|
export const revalidate = false;
|
|
|
|
export const { staticGET: GET } = createFromSource(source, {
|
|
// https://docs.orama.com/docs/orama-js/supported-languages
|
|
language: 'english',
|
|
});
|