lbry-tech/astro.config.mjs
2024-05-31 02:22:04 +02:00

23 lines
No EOL
743 B
JavaScript

import { defineConfig } from 'astro/config';
import codeblocks from "@thewebforge/astro-code-blocks";
import preload from "astro-preload";
import orama from '@orama/plugin-astro';
import mdx from "@astrojs/mdx";
// https://astro.build/config
export default defineConfig({
prefetch: true,
integrations: [preload(),
orama({
// We can generate more than one DB, with different configurations
mydb: {
// Required. Only pages matching this path regex will be indexed
pathMatcher: /resources|turorials|api\/[0-9]{4}\/[0-9]{2}\/[0-9]{2}\/.+|spec|\/overview$/,
// Optional. ['body'] by default. Use it to constraint what is used to
// index a page.
contentSelectors: ['.content'],
},
}), mdx()]
});