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-06-01 19:16:10 +00:00
|
|
|
import orama from '@orama/plugin-astro';
|
2024-01-24 14:42:16 +00:00
|
|
|
import * as config from './src/config.js';
|
2023-12-04 18:52:18 +00:00
|
|
|
|
|
|
|
import mdx from "@astrojs/mdx";
|
|
|
|
|
|
|
|
// https://astro.build/config
|
|
|
|
export default defineConfig({
|
|
|
|
prefetch: true,
|
2024-06-01 19:16:10 +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()],
|
2024-01-24 14:42:16 +00:00
|
|
|
redirects: config.REDIRECTS,
|
2023-12-04 18:52:18 +00:00
|
|
|
});
|