Skip to content

Commit 17736be

Browse files
stevekwon211claude
andcommitted
fix(pages): build registry to web root so items serve at /r/<name>.json
`slintcn build` writes the index to <out>/registry.json and items to <out>/r/*.json. Deploying with -o web/r double-nested items at /r/r/*.json; -o web puts the index at /registry.json and items at /r/<name>.json — the URL the README documents for remote install. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 3cd19fd commit 17736be

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ jobs:
5757
with:
5858
node-version: 20
5959

60-
- name: Build static registry (served at /r/<name>.json)
61-
run: node bin/slintcn.mjs build -o web/r
60+
- name: Build static registry (index at /registry.json, items at /r/<name>.json)
61+
run: node bin/slintcn.mjs build -o web
6262

6363
- name: Upload Pages artifact
6464
uses: actions/upload-pages-artifact@v3

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ slint-build-*.log
2525
web/pkg/
2626
# static registry built by `slintcn build` (regenerated for Pages + npm)
2727
web/r/
28+
web/registry.json
2829
dist/

0 commit comments

Comments
 (0)