Commit d9607d1
authored
docs: point SPA production guidance at ADR 036 instead of @zitadel/edge-proxy (#561)
## Summary
<!-- Briefly describe what changed and why. -->
- W0 item of #560. ADR 036 (#552) decided against the
`@zitadel/edge-proxy` package and #56 is closed — but main still
documented that package as the SPA production path in three places: the
six framework patcher docs/READMEs, the six SDK package READMEs
(including `import { handleProxy } from '@zitadel/edge-proxy'` examples
for a package that does not exist on npm), and the docs site.
- All of it now points at the decided model: the same-origin
`/__nextgen` path comes from a platform rewrite (`vercel.json` /
`netlify.toml`) or a minimal Cloudflare worker, combined with the
publishable key from ADR 036 — no secrets in platform env stores. Every
touched passage links ADR 036 and the tracking issue #560, and states
that until that work lands the dev proxy covers local development only.
- `concepts/sdk-proxy.mdx` gains an "SPAs in production" section (the
SDK pages' "how to run one in production" links previously pointed at a
page that never said).
- Patch changeset for the six SDK packages so the corrected READMEs
actually reach npm on the next train.
## Validation
<!-- List exact commands run. If validation was not run, say so
explicitly. -->
- `grep -rn "edge-proxy" apps/cli/src packages/sdk-*/README.md
apps/docs/content` — zero matches after the change.
- Prose-only change; no build or test commands run.
## Release notes / changeset
- Changeset: `.changeset/sdk-readme-adr036-docs.md` — patch for the six
SPA SDK packages (published README content changed; no shipped behavior
changed).
## Notes
<!-- Add reviewer context, follow-ups, risks, or "None". -->
- Deliberately does **not** promise a working production path today —
wording says "tracked in #560" because until the publishable-key work
lands, a plain rewrite would still 401 on the handoff exchange.
- The dev-proxy credential statements now reflect #719's interim
hardening (secret attached only on `POST /sessions/exchange`, recorded
as an implementation note in ADR 036); full removal from the SPA path
remains W3c of #560.1 parent 05336eb commit d9607d1
22 files changed
Lines changed: 103 additions & 130 deletions
File tree
- .changeset
- apps
- cli/src/lib/orca/patchers/rule
- angular
- qwik
- react
- solid
- svelte
- vue
- docs/content/docs
- concepts
- sdks
- packages
- sdk-angular
- sdk-qwik
- sdk-react
- sdk-solid
- sdk-svelte
- sdk-vue
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
0 commit comments