Skip to content

Starlight

Everything is the same as local search with Starlight, execpt for two things:

  1. Disable pagefind in astro.config.mjs
js
// https://starlight.astro.build/reference/configuration/#pagefind
export default defineConfig({
  integrations: [
    starlight({
      ...
      pagefind: false
      ...
    }),
  ],
});
  1. Swap canary-provider-pagefind with canary-provider-cloud
html
...
<canary-root framework="starlight">
  <canary-provider-pagefind>
    <canary-provider-cloud project-key="KEY" api-base="https://cloud.getcanary.dev">
      <!-- Rest of the code -->
    </canary-provider-cloud>
  </canary-provider-pagefind>
</canary-root>
...