@@ -5,19 +5,16 @@ This Worker serves `https://docs.openwebui.com/api/search?q=...`.
55Do not route ` /search* ` to this Worker. Docusaurus uses ` /search-doc-*.json `
66for the built-in search index.
77
8- The Worker is deployed by the ` deploy-worker ` job in
9- ` .github/workflows/gh-pages.yml ` , which runs only after the GitHub Pages deploy
10- has finished. That ordering matters: the Worker answers against
11- ` https://docs.openwebui.com/search-corpus.json ` , which the Pages build produces,
12- so deploying the Worker first would point it at the previous corpus.
8+ Deploy it from the Cloudflare dashboard using Workers Builds:
139
14- Two repository secrets are required:
10+ 1 . Create or open the ` open-webui-docs-search ` Worker.
11+ 2 . Connect this GitHub repository under ** Settings > Builds** .
12+ 3 . Set the Worker root directory to ` workers/docs-search ` .
13+ 4 . Use the production branch ` main ` .
14+ 5 . Leave the build command empty, or use ` echo ready ` if Cloudflare requires one.
15+ 6 . Use ` npx wrangler@4 deploy --config wrangler.toml ` as the deploy command.
16+ 7 . Save and deploy.
1517
16- - ` CLOUDFLARE_API_TOKEN ` , scoped to edit Workers on the ` openwebui.com ` account
17- - ` CLOUDFLARE_ACCOUNT_ID `
18-
19- ** Turn off Cloudflare's own build trigger.** If the Worker is also connected to
20- this repository under ** Settings > Builds** in the Cloudflare dashboard,
21- Cloudflare starts its own deploy on every push to ` main ` , independently of
22- GitHub Actions and with no ordering against the Pages build. Disconnect that
23- integration, or the two deploy paths race and the ordering above buys nothing.
18+ No GitHub Cloudflare secrets are needed. The Worker fetches the static corpus
19+ from ` https://docs.openwebui.com/search-corpus.json ` , which is generated by the
20+ normal GitHub Pages docs build.
0 commit comments