Skip to content

Commit c372306

Browse files
greynewellclaude
andcommitted
Don't create placeholder pages for community repos with proxy redirects
Static files take precedence over _redirects in Cloudflare Pages, so placeholder index.html files in site/{repo}/ were blocking the proxy rules. Skip placeholder creation for repos with upstream set (community repos), letting _redirects route them to graphtechnologydevelopers.github.io/{repo}/. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 8c7f2e7 commit c372306

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

generate-index.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ func generateRepoPages(cfg Config) error {
127127
for _, cat := range cfg.Categories {
128128
for _, repo := range cat.Repos {
129129
dir := fmt.Sprintf("site/%s", url.PathEscape(repo.Name))
130+
// Skip community repos that have proxy rules in _redirects (upstream set)
131+
if repo.Upstream != "" {
132+
continue
133+
}
130134
// Skip if arch-docs have already been deployed to this directory
131135
if _, err := os.Stat(fmt.Sprintf("%s/index.html", dir)); err == nil {
132136
continue

0 commit comments

Comments
 (0)