Commit 3846349
committed
docs(hono): correct "the fix in either direction" — one direction can have none
Commit 6e28797 on this branch says, of the rule-A refusal:
"a `prefix` that base path is not inside refuses at construction, naming
both values and the fix in either direction"
The first half holds; the second does not, and history may not be rewritten
here, so this commit is the correction and the quote above is what it
corrects.
A single-segment base path such as `/auth` has NO usable parent prefix:
`''` is coerced straight back to `/api` by `options.prefix || '/api'`, and
`'/'` makes the dispatcher catch-all `'//*'` and every other route of the
app `//…`, which 404s. So for that composition only one direction exists —
configuring better-auth under the prefix the caller asked for — and the
refusal now offers exactly the directions that construct rather than one
per side regardless.
The changeset carried the same sentence and is corrected with it.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D47qPfEWVPmhguWgBZCi5N1 parent ea848f7 commit 3846349
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
0 commit comments