lbry-tech/astro.config.mjs

23 lines
743 B
JavaScript
Raw Normal View History

2023-12-04 18:52:18 +00:00
import { defineConfig } from 'astro/config';
import codeblocks from "@thewebforge/astro-code-blocks";
import preload from "astro-preload";
2024-05-31 00:22:04 +00:00
import orama from '@orama/plugin-astro';
2023-12-04 18:52:18 +00:00
import mdx from "@astrojs/mdx";
// https://astro.build/config
export default defineConfig({
prefetch: true,
2024-05-31 00:22:04 +00:00
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()]
2023-12-04 18:52:18 +00:00
});