1 # Cloud Changelog Entries
2
3 Each dated entry of the [Cloud changelog](../../app/changelog/page.mdx) is a
4 `{YYYY-MM-DD}.mjs` file in this directory:
5
6 ```js
7 /** @type {import("../../utils/changelog").ChangelogEntry} */
8 export default {
9 date: "2026-08-10",
10 title: "Build-time and runtime environment variables",
11 summary:
12 "Environment variables can be scoped to build time or runtime, and the sidebar is now grouped by project.",
13 image:
14 "https://res.cloudinary.com/<cloud>/image/upload/v1/Cloud%20Changelog/august-10-2026.png",
15 content: `- You can now do a new thing. Refer to [Environment Variables](/environments/environment-variables) for more details.
16 - Another change that went live on this date.`,
17 }
18 ```
19
20 - `date` matches the file name, and the changelog is sorted by it, newest first.
21 - `title` is the short headline the page uses as the entry's heading, with the
22 date shown next to it. Aim for 3–8 words, sentence case, no trailing period.
23 It's optional, and falls back to the formatted date.
24 - `content` is Markdown, **without** a heading. The heading is rendered from
25 `title`, so a `##` line in the content would show up twice.
26 - Links to other Cloud documentation pages are root-relative and omit both the
27 `/cloud` base path and the `page.mdx` suffix, such as
28 `/environments/custom-domains`. Links to other documentation projects are full
29 URLs. Root-relative links are rewritten to absolute URLs for the public
30 endpoint and the page's Markdown version.
31 - `content` is a template literal, so any backtick or `${` in it must be
32 escaped.
33 - `summary` is one plain sentence covering the entry as a whole. It's optional,
34 and **not rendered on the changelog page** — it exists for consumers of the
35 `/cloud/api/changelog` endpoint.
36 - `image` is the entry's banner, also **not rendered on the page** and only
37 returned by the endpoint. Don't write it by hand; see below.
38
39 An entry's anchor on the page — `#august-10-2026` — comes from its **date**, not
40 its title, so rewording a title doesn't break a permalink to the entry.
41
42 After adding or changing an entry, run `yarn prep` in `www/apps/cloud` to
43 regenerate `index.mjs`, the manifest the changelog page and the
44 `/cloud/api/changelog` endpoint read. Don't edit `index.mjs` by hand.
45
46 ## Banner images
47
48 Banners are rendered by the [`release-banner`](../../../../utils/packages/release-banner)
49 package's `cloud-changelog` type and hosted on Cloudinary. The banner's only
50 input is the entry's **display date**, so its public ID is derived from the date
51 alone — `August 10, 2026` uploads to `Cloud Changelog/august-10-2026`, and
52 re-uploading overwrites it in place.
53
54 The [cloud docs automation
55 workflow](../../../../../.github/workflows/cloud-docs-automation.yml) does this
56 after Claude writes the entry: it uploads the banner, then runs
57 `scripts/set-changelog-image.mjs` to patch the URL into the entry's `image`.
58
59 To attach one by hand, from the repository root:
60
61 ```bash
62 # CLOUDINARY_URL must be set
63 BANNER_URL=$(node www/utils/packages/release-banner/dist/cli.js upload \
64 --type cloud-changelog --date "August 10, 2026")
65
66 node www/apps/cloud/scripts/set-changelog-image.mjs \
67 --date 2026-08-10 --url "$BANNER_URL"
68 ```
69
70 An entry without an `image` is valid — the endpoint returns `null` for it.