Commit 814fdcf
authored
fix: stop API reference redirect loop (#506)
## Summary
- remove the redirect from `/zksync-protocol/api` to
`/build/api-reference`
- keep the legacy `/build/api-reference` redirect pointed at
`/zksync-protocol/api`
- fix the `ERR_TOO_MANY_REDIRECTS` loop reached from Developers -> APIs
## Root Cause
`firebase.json` had two 301 redirects pointing at each other:
- `/zksync-protocol/api` -> `/build/api-reference`
- `/build/api-reference` -> `/zksync-protocol/api`
## Sources
- `firebase.json` (redirects section)
- user report reproducing the live loop:
`https://docs.zksync.io/zksync-protocol/api` and
`https://docs.zksync.io/build/api-reference`
## Uncertainty List
- none
## Acceptance Criteria
- [x] `/zksync-protocol/api` remains the canonical API docs path
- [x] `/build/api-reference` redirects to `/zksync-protocol/api`
- [x] `bun run ci:check`
- [ ] `bun run build` blocked locally by `[@nuxtjs/algolia] Missing
apiKey`
## Policy Check
- no forbidden paths were modified1 parent ae7db1b commit 814fdcf
1 file changed
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | 179 | | |
185 | 180 | | |
186 | 181 | | |
| |||
0 commit comments