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 04fa61c
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: content/(account)/authentication.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ To create a Spacefast account, you need an email address and the six-digit code
9
9
10
10
## Create an account
11
11
12
-
Type your email address on the sign-in page and press **Continue**. If the address has no account yet, Spacefast mails you a six-digit code. Enter the code and the account exists. That is the whole signup.
12
+
Type your email address on the sign-in page and press **Continue**. If the address has no account yet, Spacefast mails you a six-digit code. Enter the code to finish signing up.
13
13
14
14
There is no password signup. Passwords are something you add later, from settings, once you already have an account.
15
15
@@ -20,7 +20,7 @@ Two other ways in create an account for you:
20
20
21
21
## Sign in
22
22
23
-
One field, one button. Type the address, press **Continue**, and Spacefast picks the method for that account.
23
+
Enter your email address and press **Continue**. Spacefast picks the right sign-in method for that account:
24
24
25
25
| What you see | When |
26
26
|---|---|
@@ -132,7 +132,7 @@ Inside each team, the credential can't do more than your current role allows the
132
132
133
133
## Account settings
134
134
135
-
The whole `/account`branch opens as a dialog over the dashboard.
135
+
Every `/account`page opens as a dialog over the dashboard.
Copy file name to clipboardExpand all lines: content/(concepts)/spaces.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,11 +5,11 @@ sidebar:
5
5
order: 1
6
6
---
7
7
8
-
A Space is what you publish to: one stable hostname. Publishing creates versions inside it, and the Space decides which one visitors see.
8
+
A Space is what you publish to, with one stable hostname. Publishing creates versions inside it, and the Space decides which one visitors see.
9
9
10
10
## What a Space is
11
11
12
-
A Space owns a slug, a hostname, an owner, and one pointer that says which version visitors get. A publish can create a new immutable version or report no changes, and the Space decides which version is live.
12
+
Each Space has a slug, a managed hostname, an owner, and a pointer to the version visitors see. A publish creates a new immutable version or reports no changes, and the Space controls which version is live.
Copy file name to clipboardExpand all lines: content/(concepts)/teams.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ A team has a name and a slug. The slug is the first segment of its dashboard URL
36
36
37
37
## Roles
38
38
39
-
Three roles, and the one you hold in a team caps everything you do there, whether through the dashboard, the CLI, the API, or an agent acting for you.
39
+
Your team role caps what you can do across the dashboard, CLI, API, and any agent acting on your behalf.
40
40
41
41
| Action | Owner | Admin | Member |
42
42
|---|---|---|---|
@@ -60,7 +60,7 @@ Three roles, and the one you hold in a team caps everything you do there, whethe
60
60
61
61
A credential with the `teams:members.write` scope, such as Agent access, can invite people. Cancelling or resending an invitation and every other membership change need a signed-in person in the dashboard, even for an owner or admin. See [credential limits](/api-keys#what-an-agent-grant-cannot-do).
62
62
63
-
Owner and admin differ in exactly one place. An admin can hand out`admin` and `member`, but only an owner can make someone else an owner.
63
+
Admins can assign the`admin` and `member` roles, while only owners can grant the `owner` role or transfer ownership.
64
64
65
65
## Invite someone
66
66
@@ -95,7 +95,7 @@ On **Members**, each row has role and removal actions for owners and admins. Rem
95
95
96
96
If the team uses [Connectors](/connectors), the removal review lists the departing member's connector dependencies. Their personal connections disconnect automatically along with any Space bindings pointing to them. Team connections they created stay active while their existing Space bindings stay in place; if an owner or admin rebinds a role on a public, link-shared, or password-protected Space, restore its public-serving allowance before expecting calls to succeed.
97
97
98
-
Two guards you cannot talk your way past:
98
+
Two rules always apply:
99
99
100
100
- The last owner cannot be removed, and cannot be demoted. Add another owner first.
Copy file name to clipboardExpand all lines: content/(concepts)/versions.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ A rollback points `live` back at a retained, ready version and doesn't rebuild i
9
9
10
10
## A version is a snapshot
11
11
12
-
A publish that changes the files creates a version. A version is the exact set of files plus the config it finalized with, frozen. Nothing rewrites a version after it is ready. A publish with no changes can return `noop_publish` without creating a version.
12
+
A publish that changes files creates a version, a frozen snapshot of those files and the config they finalized with. Nothing modifies a version after it is ready. A publish with no changes can return `noop_publish` without creating a version.
13
13
14
14
Ids are `ver_` plus 32 hex characters. Once a version reaches `ready` it also gets a number, and the CLI and dashboard call it by that number.
15
15
@@ -27,7 +27,7 @@ Numbers are handed out in the order versions become ready, not the order they we
27
27
|`uploading`| Bytes are landing |
28
28
|`uploaded`| Every declared file arrived |
29
29
|`finalizing`| The version is being compiled into its served form |
|`ready`|Ready to serve, numbered, and promotable |
31
31
|`failed`| Finalize or the build that fed it failed |
32
32
|`canceled`| Stopped before it finished |
33
33
|`expired`| A draft that ran out of time before finalize |
@@ -74,7 +74,7 @@ Both take a version id, a ref such as `v12`, or a bare number. Both wait for the
74
74
75
75
Open **Versions**, find the row, and hit **Make live**. Confirm on **Make v12 live?**. The Overview page carries the same action as **Roll back to** next to the previous version.
76
76
77
-
Afterwards the list narrates the state you are in, for example *Rolled back from v13. Make it live below to roll forward.*
77
+
Afterward, the list shows the rollback state, for example *Rolled back from v13. Make it live below to roll forward.*
Copy file name to clipboardExpand all lines: content/(dynamic)/crons.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
@@ -43,7 +43,7 @@ Validation is blocking. A bad cron fails the publish rather than shipping a sche
43
43
44
44
## Schedule syntax
45
45
46
-
Three grammars in two kinds. Named and shorthand schedules are **simple** crons. Five-field crontab schedules are **advanced** crons, and your plan sets how many of each a Space runs.
46
+
Crons support three schedule formats across two tiers. Named and shorthand schedules are **simple** crons. Five-field crontab schedules are **advanced** crons, and your plan sets how many of each a Space runs.
47
47
48
48
| Kind | Examples | Notes |
49
49
| --- | --- | --- |
@@ -87,7 +87,7 @@ Advanced crons also run at their closest simple schedule for now, until advanced
87
87
88
88
A raised limit applies right away. After an upgrade or Boost, crons that were waiting start running without a publish.
89
89
90
-
A lowered limit applies at your next publish, promote or rollback. Until then, a downgrade or Boost ending changes nothing: crons that are running keep running.
90
+
A lowered limit applies at your next publish, promote or rollback. Until then, a downgrade or Boost ending changes nothing, and crons that are running keep running.
91
91
92
92
For now, whatever the plan, a Space can declare at most **8** crons, and past that the publish fails validation. `allowance` in the API reports the capped numbers. The ceiling rises to the plan limits above as the runtime update reaches every box.
`sf db migrate`decides Zero-ness from your local `sf.jsonc` before it contacts the API. A static or Functions project fails with `runtime_kind_mismatch` and exit code `30`, having sent no request. `--previous-artifact` diffs against a named artifact instead of the live schema.
153
+
`sf db migrate`checks whether the project uses Zero from your local `sf.jsonc` before it contacts the API. A static or Functions project fails with `runtime_kind_mismatch` and exit code `30`, having sent no request. `--previous-artifact` diffs against a named artifact instead of the live schema.
154
154
155
155
`sf db`, `sf db dump`, and `sf db migrate` are Zero-only. A worker declares no table set, so they answer `runtime_kind_mismatch` for one.
Copy file name to clipboardExpand all lines: content/(dynamic)/environment-variables.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,9 +57,9 @@ So a brand new variable with no flag is write-only. Pass `--no-secret` when you
57
57
| Reserved | Names starting with `SPACEFAST_`|
58
58
| Empty values | Refused. A variable always has a value |
59
59
60
-
## Build time and runtime are different lanes
60
+
## Build time and runtime are separate
61
61
62
-
A plain variable reaches both lanes. It is filled into template files when a version finalizes, and server code reads it at runtime. A secret reaches server code only. A template that references one is blocked with `secret_variable_in_template`.
62
+
A plain variable reaches both stages. It is filled into template files when a version finalizes, and server code reads it at runtime. A secret reaches server code only. A template that references one is blocked with `secret_variable_in_template`.
63
63
64
64
### Build time, `{{ vars.NAME }}`
65
65
@@ -109,7 +109,7 @@ export default capsule({
109
109
110
110
A [Functions](/functions) worker reads the same values from `env`, its second handler argument.
111
111
112
-
`.env.lakebed.server` is also accepted, for capsule portability. That file is treated as the full list: publishing also deletes Space-scope variables it doesn't name, even when the file is empty.
112
+
`.env.lakebed.server` is also accepted, for capsule portability. That file is treated as the full list, so publishing also deletes Space-scope variables it doesn't name, even when the file is empty.
113
113
114
114
115
115
An anonymous first publish, before you have an account, syncs nothing and reports `skipped: "anonymous"`.
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
@@ -23,7 +23,7 @@ Detection is the normal case. `sf publish` looks at the tree and picks the first
23
23
24
24
A directory matching none of these is a static site, which is the safe default.
25
25
26
-
The OpenNext build wins over a stray `handler.ts`, because framework output is the thing the build produced while a loose file may be a leftover.
26
+
The OpenNext build wins over a stray `handler.ts`, because a framework build takes precedence over a leftover handler file.
27
27
28
28
### The `functions/` file router
29
29
@@ -132,7 +132,7 @@ Outbound requests from a worker leave from Cloudflare's shared network addresses
132
132
133
133
`env.CONNECTORS` calls your Space's [connector roles](/space-connectors#call-it-from-functions) when the version declares any.
134
134
135
-
`env.DB` is always there. It is D1-shaped, so `env.DB.prepare(sql).bind(...).all()` is the call you already know. It reaches the space's own database through a broker, so no connection string ever lands in the bundle.
135
+
`env.DB` is always there. It uses the D1 API (`env.DB.prepare(sql).bind(...).all()`) and reaches the space's own database through a broker, so no connection string ever lands in the bundle.
136
136
137
137
Two groups of variable names never reach a worker, dropped rather than blanked so your code reads them as absent instead of as "configured, but empty".
Copy file name to clipboardExpand all lines: content/(dynamic)/zero-runtime.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ The other runtime is [Functions](/functions), a worker for npm-heavy code and fr
17
17
18
18
## Declare it
19
19
20
-
Zero is never inferred. A runtime that owns a database does not spring into existence from a directory shape, so both entry paths are required.
20
+
Zero is never inferred. Because Zero provisions a database, Spacefast never enables it from directory detection; both entry paths are required.
21
21
22
22
```jsonc sf.jsonc
23
23
{
@@ -160,7 +160,7 @@ Return one of the response helpers: `json(value)`, `text(value)`, `empty()` for
160
160
3. Your endpoint table matches. A hit runs the handler in the QuickJS runner on the space's own machine, in one transaction with the database.
161
161
4. Everything else falls to the app shell, which serves your client bundle.
162
162
163
-
Queries, mutations, and actions do not get their own URLs. The client sends them over `/__zero/run`. When a mutation commits, the runtime publishes an invalidation event. Every browser holding a matching subscription re-runs its query. That is the whole realtime story. Do not poll.
163
+
Queries, mutations, and actions do not get their own URLs. The client sends them over `/__zero/run`. When a mutation commits, the runtime publishes an invalidation event and every browser holding a matching subscription re-runs its query automatically, so you don't need to poll.
164
164
165
165
An endpoint cannot claim `/`, `/index.html`, `/client.js`, `/auth/callback`, anything under `/auth/`, or anything under `/_spacefast/`. The shell, the client bundle, and the sign-in flow already answer those.
166
166
@@ -257,7 +257,7 @@ Call them from the client with `useAction("invite")`. `scope: "/"` covers the wh
257
257
258
258
## Styling
259
259
260
-
Write Tailwind classes in your JSX. Zero compiles them at publish, so do not add a CSS, PostCSS, or Tailwind pipeline. `@plugin` and `@config` directives are rejected, and`theme.json`plus utility classes are the whole styling story.
260
+
Write Tailwind classes in your JSX. Zero compiles them at publish, so do not add a CSS, PostCSS, or Tailwind pipeline. `@plugin` and `@config` directives are rejected; use`theme.json`and utility classes for styling.
261
261
262
262
Class names must be static strings. The compiler finds them by scanning source text, so `bg-${tone}-500` produces no CSS for that class. Branch to whole literals instead.
0 commit comments