mirror of
https://github.com/LBRYFoundation/lbry-tech.git
synced 2025-03-03 14:47:53 +00:00
25 lines
No EOL
820 B
JavaScript
25 lines
No EOL
820 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 * as config from './src/config.js';
|
|
|
|
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()],
|
|
redirects: config.REDIRECTS,
|
|
}); |