Commit adb6c17
docs(compute): Deploy Button page and generator (repository-url) (#8116)
* docs(compute): add Deploy Button page and generator
Adds a Deploy Button reference page under Compute integrations: what the
button does, supported templates, URL format with attribution parameters,
troubleshooting, and copy-paste Markdown/HTML snippets. Includes an
interactive generator component and a hosted "Deploy with Prisma" SVG
badge for third-party READMEs to hot-link.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* docs(compute): make the Deploy Button repository-first
The button's contract is now a repository URL: any public GitHub
repository with a root prisma.compute.json, a package.json, and a
lockfile is deployable — no registration or catalog entry. The page
documents the minimal repository contract and the
/new/clone?repository-url=… format, and the generator takes a
repository URL plus optional project-name and attribution.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* fix(docs): correct Deploy Button contract details from Console audit
- prisma.compute.json example uses the real schema (app.httpPort, not
top-level name/port — the old example failed validation verbatim).
- Document the validation limits (file count/size caps, no workflows,
no symlinks/submodules, single-app, region key rejected).
- Match the Console's actual copy for the name-conflict error, the
15-minute authorization window, commit display and pinning behavior,
the workspace picker, and the private-by-default visibility.
- Qualify push-to-recover advice by whether the project was created.
- Generator: project-name field shows its own validation hint,
copy buttons get distinct accessible names, HTML snippet escapes
ampersands in the href.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* docs(compute): env-var support in the Deploy Button page and generator
- Fix the main button: a literal anchor + img instead of the markdown
image, which the docs pipeline wrapped in ImageZoom and made unclickable
- Remove the early-access note
- Document the env / env-example-<NAME> URL parameters and add an
Environment variables section (names in the URL, values prompted in
Console, DATABASE_URL provisioned automatically)
- Generator: rows for required env-var names + safe example values,
emitted on the URL, Markdown, and HTML outputs
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* docs(compute): document compute-config env vars; validate examples like the Console
The generator now rejects example values with control characters, the
same rule the Console applies, so a pasted tab fails for the author
instead of for their users. The env-var section documents the second
source of prompts: app.env.vars entries in prisma.compute.json appear
on the deploy form with the committed value as the prefill.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* docs(compute): lead the Deploy Button page with the generator; harden and simplify it
Restructure the page pyramid-style: the generator now sits directly under
the intro, with the repository contract, URL reference, and background
sections following in order of reader need. Requirements fold into How it
works and the static snippets fold into URL format.
Generator hardening: utm fields are validated (100-char cap, no control
characters), example values reject bidi and zero-width characters that
could visually spoof a README, and the HTML snippet escaper also covers
< > and single quotes. Simplification: snippets render through eclipse's
CodeBlock (native docs styling plus its copy button), the four labeled
inputs collapse into one Field component with aria-invalid styling, and
the URL is built in plain code instead of a useMemo with derived deps.
The env-var rules comment now points at the canonical implementation in
pdp-control-plane.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* docs(compute): state that the Deploy Button requires the JSON config form
Connected repositories accept prisma.compute.ts, but the /new/clone
validation only accepts a root prisma.compute.json. Say so explicitly
so authors who used the typed config know why validation rejects
their repository.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* docs(compute): deploy-button review fixes
- Say plainly that links carry names and public example values, never
secrets (the env-example paragraph contradicted the earlier rule).
- Reject duplicate variable names in the generator instead of silently
keeping the first example.
- Make the repository contract actionable: show framework and entry in
the minimal config, define the project requirement as JavaScript or
TypeScript, point at prisma-cli init for generating the file, and
mark the env.vars snippet as a fragment.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* docs(compute): note that env var names can't start with a number
The Console regex (/^[A-Z_][A-Z0-9_]*$/) rejects a leading digit; the
prose said only "uppercase letters, numbers, and underscores".
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* fix(docs): align deploy button with Composer (#8163)
* docs(compute): remove stale Composer access warning
* docs(compute): focus Deploy Button guide on users
* docs(compute): clarify Deploy Button user flow
* docs(compute): update Deploy Button branding
* docs(compute): balance Deploy Button spacing
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: Aman Varshney <amanvarshney.work@gmail.com>1 parent e7abb29 commit adb6c17
5 files changed
Lines changed: 289 additions & 0 deletions
File tree
- apps/docs
- content/docs/compute
- public/img
- src
- components
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
| 129 | + | |
128 | 130 | | |
129 | 131 | | |
130 | 132 | | |
| |||
0 commit comments