Commit c8efca2
fix(docs): deploy on blog changes, correct GitHub repo, stop cross-locale homepage caching (#13)
Three fixes prompted by live-site issues:
1. deploy-docs.yml only triggered on content/docs/** — blog-only changes
(like the expanded 'extend existing systems' post in #12) never deployed.
Add content/blog/** to the path filter.
2. gitConfig.repo was 'spec' → the navbar GitHub link and the docs
'edit this page' link pointed at objectstack-ai/spec. Correct to
objectstack-ai/objectos (where this content actually lives).
3. The prefix-less homepage ('/') is statically cached with
s-maxage=31536000 and no Vary on Accept-Language. Its body, however,
is language-negotiated by middleware — so a shared cache stored the
English homepage at '/' and served it to every visitor, and non-English
browsers stopped being redirected to their localized path. Mark the
default-locale rewrite response 'private, no-cache' so the edge never
shares it and middleware re-runs language detection per request.
(Verified the redirect logic itself is correct: a cache-miss request
with Accept-Language: zh-CN already 307s to /zh-Hans.)
Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com>1 parent 5a90708 commit c8efca2
3 files changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
161 | 170 | | |
162 | 171 | | |
163 | 172 | | |
| |||
0 commit comments