diff --git a/superpage/astro.config.mjs b/superpage/astro.config.mjs index 44032ee..39adab6 100644 --- a/superpage/astro.config.mjs +++ b/superpage/astro.config.mjs @@ -9,10 +9,13 @@ import icon from "astro-icon"; import react from "@astrojs/react"; import mdx from "@astrojs/mdx"; +import meili from "./scripts/meili.js"; + // https://astro.build/config export default defineConfig({ site: "https://eduseg.com.br", integrations: [ + meili(), react(), mdx(), sitemap(), diff --git a/superpage/scripts/meili.js b/superpage/scripts/meili.js new file mode 100644 index 0000000..e6bc694 --- /dev/null +++ b/superpage/scripts/meili.js @@ -0,0 +1,14 @@ +import { MeiliSearch } from "meilisearch"; +import { fileURLToPath } from "node:url"; + +export default function meili() { + return { + name: "meili", + hooks: { + "astro:build:done": async ({ logger, dir }) => { + const pathToRead = fileURLToPath(dir); + console.log(pathToRead); + }, + }, + }; +}