Skip to content

Commit da070aa

Browse files
batuhanclaude
andcommitted
Move the Zero guide to /zero
/zero was a redirect to /zero-runtime. The guide now lives at /zero, and /zero-runtime redirects to it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent fd532dc commit da070aa

18 files changed

Lines changed: 26 additions & 26 deletions

‎DOCS_WRITING_QA.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ The first review fixed eight findings covering stats, caching, routing, anonymou
6060
| Agent reach | Keep supported-client detection, skill installation, permission ceilings, human-only actions, and team-automation revocation exceptions | `content/cli/agents.mdx`; `content/agents/skills.mdx`; `content/agents/permissions.mdx` |
6161
| Ownership and billing | Distinguish self-serve teams from partner customer ownership; billing reads differ from plan changes; key rotation depends on switching consumers first | `createSpace` public reference; `content/platforms/partner-api/customers.mdx`; `content/(account)/billing.mdx`; `content/(account)/api-keys.mdx` |
6262
| Cache and schedule application | Repeat public-cache exceptions in troubleshooting; crons follow the live version | `content/(serve)/caching.mdx`; `listSpaceCrons` public reference |
63-
| Sentence splitting | Limit missing generated CSS to the dynamic class instead of declaring the whole app unstyled | `content/(dynamic)/zero-runtime.mdx`, Styling |
63+
| Sentence splitting | Limit missing generated CSS to the dynamic class instead of declaring the whole app unstyled | `content/(dynamic)/zero.mdx`, Styling |
6464

6565
Coverage by original PR section:
6666

6767
| Section | Pages compared |
6868
| --- | --- |
6969
| Account | 3: api-keys, authentication, billing |
7070
| Concepts | 3: spaces, teams, versions |
71-
| Dynamic | 8: crons, database, environment-variables, functions, logs, storage, wordpress, zero-runtime |
71+
| Dynamic | 8: crons, database, environment-variables, functions, logs, storage, wordpress, zero |
7272
| Publishing | 8: anonymous-and-claim, ci, frameworks, git, publish, recipes/html, recipes/next, wordpress-data-sources |
7373
| Reference | 3: config-file, glossary, limits |
7474
| Serving | 8: access, caching, customization, domains, routing, site-pages, stats, urls |

‎content/(dynamic)/crons.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ There's no dashboard editor for crons. Declare schedules in `sf.jsonc`, then pub
99

1010
## How a run happens
1111

12-
A cron is a scheduled `GET` against a path on your own site. It goes through the same front door a visitor gets, so whatever serves that path answers it: a [Zero](/zero-runtime) endpoint, a [Functions](/functions) route, or a static file.
12+
A cron is a scheduled `GET` against a path on your own site. It goes through the same front door a visitor gets, so whatever serves that path answers it: a [Zero](/zero) endpoint, a [Functions](/functions) route, or a static file.
1313

1414
A response under 400 is a success and is silent. A response of 400 or worse, or a fatal error, is a failure and is reported.
1515

‎content/(dynamic)/database.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ sidebar:
88
There's no connection string for this database — your code reaches it through `ctx.db` or `env.DB`, or through a single-use SQL console when you need raw SQL.
99

1010
:::note[Don't have a database yet?]
11-
For [Zero](/zero-runtime), start with `sf init --runtime zero`, or add the full [runtime block](/zero-runtime#declare-it) to `sf.jsonc`, including `kind: "zero"`, `server`, and `client` entry paths. The server file is required; Zero can generate a client shell. Publish the app before querying its live database. A [Functions](/functions#what-is-on-env) worker also gets a database through `env.DB`, but the Zero table commands do not apply to it.
11+
For [Zero](/zero), start with `sf init --runtime zero`, or add the full [runtime block](/zero#declare-it) to `sf.jsonc`, including `kind: "zero"`, `server`, and `client` entry paths. The server file is required; Zero can generate a client shell. Publish the app before querying its live database. A [Functions](/functions#what-is-on-env) worker also gets a database through `env.DB`, but the Zero table commands do not apply to it.
1212
:::
1313

1414
## What it is
1515

16-
Every Space that runs [Zero](/zero-runtime) gets one database, the MySQL that lives on the machine serving the site. A [Functions](/functions) worker gets one too, as `env.DB`.
16+
Every Space that runs [Zero](/zero) gets one database, the MySQL that lives on the machine serving the site. A [Functions](/functions) worker gets one too, as `env.DB`.
1717

1818
You do not create it, size it, or connect to it. Your capsule declares the tables. The platform applies the migration when a version finalizes.
1919

‎content/(dynamic)/functions.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ sidebar:
55
order: 1
66
---
77

8-
Functions can detect a supported worker layout when you publish, without an explicit `runtime` block. Custom layouts need a declaration, and [Zero](/zero-runtime#declare-it) is always declared explicitly.
8+
Functions can detect a supported worker layout when you publish, without an explicit `runtime` block. Custom layouts need a declaration, and [Zero](/zero#declare-it) is always declared explicitly.
99

10-
Functions runs your code as a worker. Use it when you need npm packages or framework output like OpenNext Next.js. If you want live queries in the browser and a schema the platform migrates for you, use [Zero](/zero-runtime) instead. Both can call `fetch()`. One version declares one runtime.
10+
Functions runs your code as a worker. Use it when you need npm packages or framework output like OpenNext Next.js. If you want live queries in the browser and a schema the platform migrates for you, use [Zero](/zero) instead. Both can call `fetch()`. One version declares one runtime.
1111

1212
Functions is on for every account.
1313

‎content/(dynamic)/meta.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ export default defineMeta({
44
title: "Dynamic",
55
collapsed: false,
66
order: 5,
7-
pages: ["zero-runtime", "functions", "database", "environment-variables", "crons", "object-storage", "logs", "wordpress"],
7+
pages: ["zero", "functions", "database", "environment-variables", "crons", "object-storage", "logs", "wordpress"],
88
});

‎content/(dynamic)/object-storage.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ An object is addressed by a bare 32-character hexadecimal id. There is no key, n
3030

3131
## Upload from a capsule
3232

33-
The client SDK is the upload path for a [Zero](/zero-runtime) app.
33+
The client SDK is the upload path for a [Zero](/zero) app.
3434

3535
```tsx client/upload.tsx
3636
import { storage } from "@spacefast/zero/client";

‎content/(dynamic)/wordpress.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Every Space runs a WordPress behind its static files. Run WP-CLI ag
55

66
Every Space includes a WordPress install behind its published files. Reach it through `sf wp` or its published Abilities.
77

8-
Your published files serve in front of WordPress, so a static Space never touches it and never pays for it. It is there because it is what makes a Space more than a bucket: [Zero](/zero-runtime) apps run on it, [Storage](/object-storage) is its media library, and [Database](/database) is its MySQL. This page covers the two ways to reach that WordPress directly.
8+
Your published files serve in front of WordPress, so a static Space never touches it and never pays for it. It is there because it is what makes a Space more than a bucket: [Zero](/zero) apps run on it, [Storage](/object-storage) is its media library, and [Database](/database) is its MySQL. This page covers the two ways to reach that WordPress directly.
99

1010
## `sf wp`
1111

File renamed without changes.

‎content/(reference)/config-file.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ While `name` is set in the file, the API refuses to rename the Space. The file w
121121

122122
Colors accept hex, `rgb()`, `rgba()`, `hsl()`, `hsla()`, and CSS color names. `theme` is a closed object, so an unknown key is an error.
123123

124-
A `theme.json` file next to `sf.jsonc` is an inference input rather than configuration. Only `settings.color.palette` and `settings.typography.fontFamilies` are read from it. A [Zero](/zero-runtime) capsule's Tailwind compile reads the same file.
124+
A `theme.json` file next to `sf.jsonc` is an inference input rather than configuration. Only `settings.color.palette` and `settings.typography.fontFamilies` are read from it. A [Zero](/zero) capsule's Tailwind compile reads the same file.
125125

126126
What these tokens paint, and how to replace those pages outright, is on [Layout, theme, and site pages](/site-pages).
127127

@@ -187,7 +187,7 @@ One runtime per version, discriminated on `kind`. Omit the block for a static si
187187
| `runtime.server` | string, required | none | Server entry, relative to the published directory |
188188
| `runtime.client` | string, required | none | Client entry, relative to the published directory |
189189

190-
Both are required. Zero is never inferred. See [Dynamic sites with Zero](/zero-runtime).
190+
Both are required. Zero is never inferred. See [Dynamic sites with Zero](/zero).
191191

192192
### `kind: "functions"`
193193

‎content/(reference)/glossary.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ A build turns source code into publishable output. You can build locally or let
1717

1818
## Capsule
1919

20-
The compiled form of a Zero app. `sf publish` turns your TypeScript server code into a capsule, which the platform installs on the Space. See [Dynamic sites with Zero](/zero-runtime).
20+
The compiled form of a Zero app. `sf publish` turns your TypeScript server code into a capsule, which the platform installs on the Space. See [Dynamic sites with Zero](/zero).
2121

2222
## Claim / claiming
2323

@@ -53,4 +53,4 @@ An immutable snapshot created when a publish produces a new version. A ready ver
5353

5454
## Zero
5555

56-
The runtime for an app with live queries and a declared database schema. One TypeScript app compiles into a [capsule](#capsule) with a MySQL database next to your code. [Functions](#functions) also provides a database, and [crons](/crons) can call either runtime or static files. See [Dynamic sites with Zero](/zero-runtime).
56+
The runtime for an app with live queries and a declared database schema. One TypeScript app compiles into a [capsule](#capsule) with a MySQL database next to your code. [Functions](#functions) also provides a database, and [crons](/crons) can call either runtime or static files. See [Dynamic sites with Zero](/zero).

0 commit comments

Comments
 (0)