Files
oh-my-opencode/packages/web/scripts/prepare-build.mjs
T

14 lines
419 B
JavaScript
Raw Normal View History

import { rmSync } from "node:fs"
import { execSync } from "node:child_process"
const buildCachePaths = [".next/cache/fetch-cache"]
2026-05-20 14:26:08 +09:00
const shouldClearFetchCache = process.env.OMO_WEB_CLEAR_FETCH_CACHE === "1"
2026-05-20 14:26:08 +09:00
if (shouldClearFetchCache) {
for (const filePath of buildCachePaths) {
rmSync(filePath, { force: true, recursive: true })
}
}
execSync("node ./scripts/generate-docs-content.mjs", { stdio: "inherit" })