mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-27 03:51:21 -04:00
9 lines
273 B
TypeScript
9 lines
273 B
TypeScript
import { cp } from "node:fs/promises"
|
|
import config from "../astro.config"
|
|
|
|
const base = config.base?.replace(/\/$/, "") ?? ""
|
|
const docs = `dist/client${base}/docs`
|
|
|
|
await cp(`dist/client${base}/docs-index`, docs, { recursive: true })
|
|
await Bun.$`pagefind --site ${docs}`
|