You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit da070aa
Browse filesBrowse the repository at this point in the historyBrowse files
/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>
| 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`|
62
62
| 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 |
Copy file name to clipboardExpand all lines: content/(dynamic)/crons.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ There's no dashboard editor for crons. Declare schedules in `sf.jsonc`, then pub
9
9
10
10
## How a run happens
11
11
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.
13
13
14
14
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.
Copy file name to clipboardExpand all lines: content/(dynamic)/database.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,12 +8,12 @@ sidebar:
8
8
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.
9
9
10
10
:::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.
12
12
:::
13
13
14
14
## What it is
15
15
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`.
17
17
18
18
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.
Copy file name to clipboardExpand all lines: content/(dynamic)/functions.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,9 @@ sidebar:
5
5
order: 1
6
6
---
7
7
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.
9
9
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.
Copy file name to clipboardExpand all lines: content/(dynamic)/wordpress.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ description: Every Space runs a WordPress behind its static files. Run WP-CLI ag
5
5
6
6
Every Space includes a WordPress install behind its published files. Reach it through `sf wp` or its published Abilities.
7
7
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.
Copy file name to clipboardExpand all lines: content/(reference)/config-file.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,7 +121,7 @@ While `name` is set in the file, the API refuses to rename the Space. The file w
121
121
122
122
Colors accept hex, `rgb()`, `rgba()`, `hsl()`, `hsla()`, and CSS color names. `theme` is a closed object, so an unknown key is an error.
123
123
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.
125
125
126
126
What these tokens paint, and how to replace those pages outright, is on [Layout, theme, and site pages](/site-pages).
127
127
@@ -187,7 +187,7 @@ One runtime per version, discriminated on `kind`. Omit the block for a static si
187
187
|`runtime.server`| string, required | none | Server entry, relative to the published directory |
188
188
|`runtime.client`| string, required | none | Client entry, relative to the published directory |
189
189
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).
Copy file name to clipboardExpand all lines: content/(reference)/glossary.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ A build turns source code into publishable output. You can build locally or let
17
17
18
18
## Capsule
19
19
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).
21
21
22
22
## Claim / claiming
23
23
@@ -53,4 +53,4 @@ An immutable snapshot created when a publish produces a new version. A ready ver
53
53
54
54
## Zero
55
55
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