Repository navigation
v0.60.0
Two high dependency advisories below next close (CW-2026-007: sharp, source-map-js) —
upgrade. A shop's product and category links now come from one helper with three URL options, all
off by default, and urls.trailingSlash steers routing too: a storefront page asked for without its
slash gets a permanent redirect to the slash form, while /api, /admin and a POST are never
redirected; links still written by hand (the footer's contact and info links, for example) take
that one redirect until they move to the helper. /built-with-cartwright and llms.txt stop
claiming zone shipping (checkout charges the flat rate) and passkeys (there are none), and
/admin/features marks zone shipping as not implemented. The root layout's Geist pair, Brutalist's
three fonts and the Space Mono of Editorial Ink and Meridian are self-hosted, so a build no longer
asks Google for them. Every cron route checks CRON_SECRET through one constant-time helper, and a
production deploy without the secret now says so — the next release refuses its cron calls (see
Deprecated). Cancelling an unpaid order cancels its Stripe payment, and the nightly Stripe check
gets multi-currency orders and variant restocks right. Every WebMCP browser tool states Chrome's
three annotations, the AI model picker offers Sonnet 5.5 and Opus 5.5, "Translate" on a vibe page
works again, and an unknown chat model says it runs read-only. No schema change: no
pnpm db:push is needed (see Upgrading).
🔒 Security
sharpandsource-map-jsmove to their patched releases (CW-2026-007). Two high
pnpm audit --prodadvisories, both belownext:sharp0.35.5 fixes GHSA-wq5f-xc86-pv6w
(librsvg, the SVG decoder in Next's optional image optimiser) andsource-map-js1.2.2 fixes
GHSA-68fv-2mgg-jv7q (denial of service through indexed source-map sections; reached through
postcssat build time). Neither is known to be reachable from a request in a shipped shop:
next.config.tsdoes not setdangerouslyAllowSVG, and on Vercel image optimisation runs
outside your functions. A shop that runsnext startitself (a container or its own server) does
runsharp, so upgrade regardless. Twooverridesselectors inpnpm-workspace.yamlcarry the
fix;pnpm audit --prodnow reports no known advisory. The twelvenext16.3.8 entries leave
minimumReleaseAgeExclude, because that release is now older than the three-day cutoff.- Every cron route checks its secret through one helper, in constant time (low — hardening).
The eleven scheduled-job handlers under/api/cron(eight inapp/, three mounted from the
reviews and google-workspace plugins) each carried their own copy of theCRON_SECRETcheck and
compared theAuthorizationheader with!==, whose running time depends on how much of a guess
matches. They now all callverifyCronRequest(lib/cron/auth.ts), which hashes both sides and
compares them withtimingSafeEqual; the two machine-only admin routes that take the same bearer
(/api/admin/run-pending-migrations,/api/admin/reset-demo-data) compare through the same
cronBearerMatchesit uses. No exploit is known, so there is no advisory id. What stays open:
withoutCRON_SECRETthese routes answer anyone — backups, audit-log and token deletion,
cart-recovery mail, FX refresh, the SEO snapshot. That is unchanged in this release (see
Deprecated), so setCRON_SECRETin your production environment now. A production deploy
without it now says so on every admin page and in the setup guide (/admin/integrations), and
each server instance logs a warning on its first cron call. A test fails if a route under
app/api/crondoes not carry oneverifyCronRequestguard per handler or readsCRON_SECRET
itself, or if===/!==compares against aBearer ${…}template literal anywhere inapp/,
lib/,plugins/orcomponents/(a bearer built any other way, or held in a variable first,
is not caught by that scan).
✨ Added
- A shop gets one place its public links are built from (
lib/urls.ts) and three URL
options inbrand.config.ts— keep an imported address, end every path in/, drop the
language prefix on a single-language shop — all off by default, so every existing link is
unchanged; the engine's product and category links and the design packs adopt the helper
below, and links still written by hand follow in later releases (docs/urls.md). - The engine's product and category links now go through that helper — product page, category
page, product card, footer, cart, sitemap, catalogue feed,/pricing.md, the search API,
IndexNow and the review pages — so the URL options reach them. With the options unset every
link is the same string as before;permalinksdoes not reach them yet (they pass the slug
alone until the release that serves a permalink). A stored permalink is the path without the language prefix,
and one with a.or..segment is ignored for the pattern. A test now fails on a
product or category link built by hand outside the helper. - The shipped design packs link products and categories through the same helper — every
homepage's product and category tiles, and the Halo and Crema product cards — and the test
that refuses a hand-built link now readsdesigns/as well. With the options unset every link
is the same string as before. The test also refuses a helper call that hands over more than
the slug ({ slug, permalink }or a spread), so a permalink cannot reach one link early. urls.trailingSlash: truenow steers routing as well as links: a storefront page asked for
without its slash (GET /da/product/x) answers with a permanent redirect to/da/product/x/,
the way a migrated WordPress address is written.proxy.tsdoes it rather than Next, whose own
redirect (next.config.tsnow setsskipTrailingSlashRedirectbesidetrailingSlash) would
also have sent every/apipath to its slash form — and Vercel Cron, Stripe's webhooks and an
OAuth callback do not follow a redirect. So/api,/admin,/oauth,/icon,/og,
/.well-knownand files answer with or without the slash, and nothing registered elsewhere
has to change; aPOSTis never redirected. Merchant redirects match a source in either form
and the engine's own redirects (/da/om-os, the trust-page aliases, the legacy Danish paths)
give their destination the slash, so each lands in one hop; the sitemap's entries carry it too,
the--profile sitesitemap's included. A slug with a dot (v1.2-noter) is linked, redirected
to and listed without the slash, like a file, because the proxy never sees a dotted path.
Off — the default — Next receives exactly the config it did before (docs/urls.md).
Changed
/built-with-cartwright,llms.txtand/admin/featuresstop promising what the engine does
not do: shipping zones are marked not implemented and leave the tour, because checkout still
charges the flat rate (which/admin/shippingnow says above the zone editor, with the fee every
order pays), the passkey line is gone, and the logo generator is described by what it does rather
than by a model id.- The model picker for the AI assistant (
/admin/integrations→ AI) now offers Claude Sonnet 5.5
and Claude Opus 5.5 instead of Sonnet 4.5 and Opus 4.5; Haiku 4.5 stays the default. Both new
models get the full admin tool set and are priced in the usage meter (a model id the engine does
not know still falls back to read-only tools, so every listed model is now pinned against both
tables). A shop that saved a model the list no longer offers keeps it, shown as "saved — not in
the current list" until someone picks a current one and saves. - Dependencies moved to their newest releases inside the current majors, each public for at least
three days.ai7.0.127 with@ai-sdk/anthropic4.0.71,@ai-sdk/google4.0.87,
@ai-sdk/openai-compatible3.0.62 and@ai-sdk/react4.0.130,@modelcontextprotocol/sdk
1.32.0,next-intl4.14.9,@google/genai2.27.0,@upstash/ratelimit2.2.0 with
@upstash/redis1.39.0,lucide-react1.50.0,resend6.32.0, and the dev packagestsx
4.23.15,vite8.3.2 and@typescript-eslint/parser8.71.0. No direct dependency moved a major.
The lint-time copy ofbrace-expansion1.x that eslint pulls is pushed to 1.1.21, which the
threebrace-expansionadvisories now also cover.pnpm audit --prodreports no known
advisory; one dev-only advisory stays open, because no fixed release exists yet (braces3.0.3,
GHSA-vfj7-8cjw-p6xm, reached only througheslint-config-nextat lint time). - The root layout's Geist and Geist Mono are self-hosted. They load through
next/font/local
fromapp/fonts/instead ofnext/font/google, so a build no longer asks Google for them — that
fetch failed builds at random (three red builds in one day, each green on retry with the same
code). Every file Google served is kept: the latin face is preloaded as before, and the other
subsets (latin-ext, Cyrillic, Vietnamese, symbols —№,ł, box-drawing) sit in afaces.css
next to it and load only when a page shows one of their characters. The family names stayGeist
andGeist Mono(design packs name them in their tokens), and pages render the same — the
fallback faces carry the metricsnext/font/googleused. Each font directory carries its licence
and afonts.jsonwith the source URL and a sha256 per file.node scripts/fonts/fetch.mjs <Font> '<options>' <dir> [families]fetches another family the same way, with Next's own option rules;
the remaining design packs move over in later releases. - Every WebMCP browser tool now states Chrome's three annotations. Chrome's
registerTool
readsreadOnlyHint,consequentialHint(the action is significant, real-world or
non-reversible, so the browser may ask the human first) anduntrustedContentHint(the output
carries text the site does not vouch for). Until now only four tools set any hint, and the three
tools that change the customer's cart set none. Nowadd_current_product_to_cart,
update_cart_item_quantityandremove_cart_itemare marked consequential;search_products,
get_cart,list_visible_productsand Crema'scalculate_brew_ratioare marked read-only;
navigate,filter_productsandgo_to_checkout, which only change the page, are marked
neither.untrustedContentHintisfalseeverywhere, because no tool returns customer-written
text such as reviews. No tool name, schema or moat binding changed. A test mounts every WebMCP
surface and fails if a tool leaves a hint out, if a tool outside the cart-changing set is marked
consequential, or if a tool registers without going throughregisterWebMcpTools
(docs/webmcp.md→ "Tool annotations").
Deprecated
- A production deploy without
CRON_SECRETwill refuse cron calls from the next release.
Today the routes under/api/cronlet a call through when noCRON_SECRETis set, because
Vercel Cron sends itsAuthorizationheader only once the secret exists — so anyone can call
them. From the next release a production deploy (VERCEL_ENV=productionor
NODE_ENV=production) without the secret refuses those calls instead, and its scheduled jobs stop
until it is set. Set it now: generate one withopenssl rand -hex 32, add it asCRON_SECRETto
the production environment (Vercel → Settings → Environment Variables) and redeploy; Vercel Cron
then sends it on its own.next devstays open.
🛠 Fixed
- Archivo, Space Grotesk and Space Mono are self-hosted, so a build no longer asks Google for
them. Brutalist loads all three fromapp/fonts/<family>/(onefont.tsper family), and
Editorial Ink and Meridian load their Space Mono from there too, so those fetches can no longer
fail a build at random ("Failed to fetch … from Google Fonts"). Measured against the previous
build on seven homepages (Brutalist, Editorial Ink, Meridian, Nocturne, Engineered, Crema and the
default design), each page fetches the same font files (same bytes, same count), preloads the same
set, and the settled page renders the same at 1440 and 390 px. What changes is order: Next lists a
page's font preloads alphabetically by file name, so Space Grotesk and Space Mono are now requested
last and Archivo a little later than before, and on a cold first load their text can show its
size-matched fallback for a moment. Families
another pack still loads from Google (Fraunces, Hanken Grotesk, Manrope, Plus Jakarta Sans, Sora)
stay on Google until their last pack moves with them: a self-hosted copy beside a Google one
would make the browser download the same file twice, and a test now refuses that. Editorial Ink
and Meridian's mono token reads--font-space-mono(was--font-spacemono/--font-mer-mono);
a customised copy that reads the old name with its"Space Mono"fallback still gets the font.
A test keeps the files that usenext/font/googlefrom growing.scripts/fonts/fetch.mjsnow
replaces a font directory all or nothing — a failed download leaves the installed files as they
were, and a complete run removes the previous run's files that nothing names any more — writes a
variable font's shared file once, and namesformat()after the file type. - "Translate" on a vibe page works again. The admin theme form's translate button
(POST /api/admin/vibe/translate) asked Google forgemini-1.5-flash, a model Google shut down
on 2025-09-29, so it failed for every shop. It now usesgemini-2.5-flash, the model the media
alt-text job already uses; both read it from one constant (GEMINI_TEXT_MODELin
lib/ai/gemini.ts). The route also sent Google the encrypted Gemini key when the key was saved
in/admin/integrations; it now reads the key through the same helper as every other Gemini
call, which decrypts it and falls back toGOOGLE_GEMINI_API_KEY. A test now fails if a model id
Google has shut down (the Gemini 1.0 and 1.5 families, 2.0 Flash, the Live 2.5 preview) appears
anywhere in the shipped source. - An unknown AI model is no longer silent. A chat model the engine has no capability row for
runs with read-only tools and an 8k context window — on purpose, so an untested model never gets
write tools. Until now nothing said so: the chat simply could not change anything. The AI form in
/admin/integrationsnow says "Not a known model: tools run read-only and the context window is
limited to 8k tokens." under the Ollama model field and under a saved Anthropic model the list no
longer offers, and a typed Ollama model shows its real tier instead of always "Read-only". The
fallback itself is unchanged. The capability table moved tolib/ai/model-capabilities.ts(plain
data the form can read);lib/ai/client.tsre-exports it, so existing imports keep working. - Cancelling an unpaid order also cancels its Stripe payment. Until now the payment stayed
open: a customer still on the payment page could finish 3-D Secure and pay for an order you had
cancelled, and the money sat in Stripe with only an audit row (orders.payment_not_applied) to
say so. The admin status form, the bulk action andorders.update_statusnow cancel the order's
PaymentIntent right after the status is written, and the order timeline says what happened. A
payment the customer already made is never cancelled — the note says to issue a refund from the
order page instead, since cancelling an order does not return money. If Stripe cannot be reached
the order is cancelled anyway, and the note says to cancel the payment in the Stripe Dashboard.
Each attempt is audited asorders.cancel_payment_intent; the tool's result carries the outcome
aspaymentIntent. - The nightly Stripe check no longer flags multi-currency orders that were paid correctly.
The reconcile cron (/api/cron/reconcile-stripe), which catches payments the webhook missed,
compared what Stripe charged with the order's base-currency total, so an order charged in EUR
went to "Needs review" although the customer paid exactly what they were shown. It now checks
amount and currency against the order's snapshotted rate — the webhook's own check, from one
shared helper (expectedStripeChargeinlib/money.ts). Its header comment no longer claims it
runs every 15 minutes;vercel.jsonruns it once a day at 03:00 UTC. - An unpaid order the nightly check cancels gives stock back to the right variant. When Stripe
reported the payment cancelled, the cron returned every line's quantity to the product, while
checkout takes a variant line's stock from the variant — so the variant stayed short and the
product gained stock it never lost. It now uses the same restock as the rest of the shop, and
only when it is the one that moves the order from awaiting payment to cancelled, so a second run
never restocks twice.
Upgrading
No schema change: no pnpm db:push is needed, and no flag was added. Run pnpm install so the
sharp and source-map-js overrides land (CW-2026-007). Set CRON_SECRET in your production
environment before you take the next release — from then on a production deploy without it
refuses its cron calls and its scheduled jobs stop (see Deprecated). The URL options stay off
unless you set them; of the three, only trailingSlash steers routing yet, so keep permalinks
and localePrefix at their defaults (false, "always") on a live shop (docs/urls.md). A shop that turned shippingZones on
still charges the flat rate at checkout, as it always did; the flag is now marked not implemented.