Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import starlightLinksValidator from "starlight-links-validator";
import react from "@astrojs/react";
import vercel from "@astrojs/vercel/serverless";
import vercel from "@astrojs/vercel";
import ecTwoSlash from "expressive-code-twoslash";
import cliHelpLang from "./cli-help.tmLanguage.json";
import starlightDocSearch from '@astrojs/starlight-docsearch';

// https://astro.build/config
export default defineConfig({
site: "https://docs.membrane.io",
output: "hybrid", // default to static, but allow SSR opt-in per page
output: "static",
adapter: vercel({
isr: {
// cache server rendered pages on first request and save for 1 hour
Expand All @@ -33,8 +34,8 @@ export default defineConfig({
title: "Membrane",
favicon: "/favicon.png",
components: {
Head: "./src/components/Head.astro",
Search: "./src/components/Search.astro",
Head: "./src/components/Head.astro"
// Search: "./src/components/Search.astro",
},
editLink: {
baseUrl: "https://github.com/membrane-io/docs/edit/main",
Expand Down Expand Up @@ -66,7 +67,14 @@ export default defineConfig({
github: "https://github.com/membrane-io/docs",
twitter: "https://twitter.com/membraneio",
},
plugins: [starlightLinksValidator()],
plugins: [
starlightLinksValidator(),
starlightDocSearch({
appId: 'D16FPPVRA7',
apiKey: 'f01cc7df3a4e606df0dc9c2a61f894a9',
indexName: 'membrane',
}),
],
sidebar: [
{
label: "Getting Started",
Expand Down
Loading