Skip to content
2 changes: 1 addition & 1 deletion content/(account)/api-keys.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ A preset is a named bundle of permissions. Pick the narrowest one that does the
| `billing_viewer` | Billing viewer | Read team and billing information, nothing else |
| `team_admin` | Team admin | Everything this team can do |

`space_publisher` and `ci_deploy` carry the same publish permissions. `space_admin` is the default when a request names no preset. It deliberately stops short of `team_admin`: it can never mint keys, manage members, or touch billing.
`space_publisher` and `ci_deploy` carry the same publish permissions. `space_admin` is the default when a request names no preset. Unlike `team_admin`, it can't create keys, manage members, or change billing.

## How permissions compile

Expand Down
4 changes: 2 additions & 2 deletions content/(account)/authentication.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sidebar:
order: 1
---

Creating a Spacefast account takes nothing but an email address and a six-digit code — no password required until you add one later.
To create a Spacefast account, you need an email address and the six-digit code sent to it. A password is optional, and you can add one later.

## Create an account

Expand Down Expand Up @@ -115,7 +115,7 @@ Sessions are separate from agent access. To cut off an agent or a CLI, use **Acc
</Step>
</Steps>

Facts worth knowing about that credential:
About that credential:

| Fact | Value |
|---|---|
Expand Down
2 changes: 1 addition & 1 deletion content/(account)/billing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sidebar:
order: 3
---

Prices, allowances and limits for every plan are on [Pricing & Limits](/pricing). This page covers managing a plan.
Manage your plan here. Prices, allowances, and limits for every plan are on [Pricing & Limits](/pricing).

## Upgrade, downgrade or cancel

Expand Down
2 changes: 1 addition & 1 deletion content/(account)/usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sidebar:
order: 4
---

Allowances, unit prices and what each meter counts are on [Pricing & Limits](/pricing). This page covers reading your current usage.
Check your current usage here. Allowances, unit prices, and what each meter counts are on [Pricing & Limits](/pricing).

## Read current usage

Expand Down
2 changes: 1 addition & 1 deletion content/(concepts)/spaces.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ What changes:
- The old slug stays reserved for this Space.
- Version URLs do not move. They were computed once and stored.

One thing blocks a rename. While `name` is set in your `sf.jsonc`, the API refuses to rename the Space — the file would win back the old name on the next publish. Remove the key or rename it in the file. See [Config file](/config-file).
One thing blocks a rename. While `name` is set in your `sf.jsonc`, the API refuses to rename the Space, because the next publish would set the old name again. Remove the key or rename it in the file. See [Config file](/config-file).

## Deleting and restoring

Expand Down
4 changes: 2 additions & 2 deletions content/(concepts)/versions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ sf channels set live --promotion manual --space docs

## Promote and roll back

Promoting points `live` at a ready version. That is the whole operation. No files move, nothing is rebuilt, and the previous version keeps its own URL.
Promoting points `live` at a ready version. No files move, nothing is rebuilt, and the previous version keeps its own URL.

Rolling back is the same operation aimed backwards. There is no separate rollback mechanism, and no rebuild happens either way. The dashboard says it plainly: **Takes effect in seconds. Nothing is rebuilt.**
Rolling back is the same operation, pointed at an older version. Neither one rebuilds anything, and both take effect in seconds.

<Tabs>
<Tab title="CLI">
Expand Down
2 changes: 1 addition & 1 deletion content/(dynamic)/database.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sidebar:
order: 2
---

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.
This database has no connection string. Your code reaches it through `ctx.db` or `env.DB`, or through a single-use SQL console when you need raw SQL.

:::note[Don't have a database yet?]
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.
Expand Down
4 changes: 2 additions & 2 deletions content/(dynamic)/wordpress.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: Every Space runs a WordPress behind its static files. Run WP-CLI ag

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

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.
Your published files are served in front of WordPress, so a static Space never uses it or pays for it. WordPress runs the dynamic features: [Zero](/zero-runtime) apps run on it, [Storage](/object-storage) is its media library, and [Database](/database) is its MySQL. You can reach it directly in two ways.

## `sf wp`

Expand All @@ -21,7 +21,7 @@ Everything after `sf`'s own flags is handed to `wp` unchanged. `--format=csv` ab

### The `--` rule

`sf` stops claiming flags at the first token that is not one of its own, and `--` ends the argument outright. So a `wp` flag can never collide with an `sf` flag by accident. A `wp` command that genuinely needs `--path` or `--space` is still reachable — just put it after `--` or after any positional.
`sf` stops claiming flags at the first token that is not one of its own, and `--` ends the argument outright. So a `wp` flag can't collide with an `sf` flag by accident. To pass `--path` or `--space` to `wp`, put it after `--` or after any positional argument.

```bash
sf wp -- --version
Expand Down
2 changes: 1 addition & 1 deletion content/(publish)/anonymous-and-claim.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The key is returned once, at creation, and once more if you rotate it. The CLI c

CLI and MCP receipts include the preview URL, claim link, and message for you to relay. CI masks these links. The separate Space key is never printed on its own.

The claim link is a fragment URL on purpose. Browsers never send a fragment to a server, so the key reaches the claim page without being logged anywhere in between.
The key is in the claim link's URL fragment. Browsers don't send fragments to servers, so the key reaches the claim page without being logged on the way.

From the dashboard, **Drop** does the same thing while signed out. The eyebrow reads **Anonymous drop · Claim it later**, and the result carries a **Claim this space** button.

Expand Down
12 changes: 6 additions & 6 deletions content/(publish)/ci.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ GitHub Actions and GitLab CI both set `CI` for you, and a truthy `CI` puts the C

| Change | Detail |
| --- | --- |
| `--json` is appended | Every command prints `{ data }` on stdout, `{ error }` on stderr. Passing `--json` yourself is redundant, and worth writing anyway so the pipeline reads the same locally |
| Prompts are off | The CLI never asks a question it cannot get an answer to |
| `--yes` is still yours | Agent mode never implies it |
| `--json` is appended | Every command prints `{ data }` on stdout, `{ error }` on stderr. Pass `--json` anyway so the command behaves the same when you run it locally |
| Prompts are off | The CLI doesn't prompt |
| `--yes` is not implied | Agent mode doesn't add it |

That last one bites. A destructive command in CI without `--yes` fails with `confirmation_required` and exit code 2, every time. Add `--yes` to the command that needs it rather than setting it globally.
A destructive command in CI without `--yes` fails with `confirmation_required` and exit code 2. Add `--yes` to the command that needs it rather than setting it globally.

Credentials also behave differently under `CI`. The plaintext credential store is the default there, so a locked or absent OS keyring never wedges a job.
Credentials also behave differently under `CI`. The plaintext credential store is the default there, so a locked or missing OS keyring doesn't block a job.

## Version provenance

Expand Down Expand Up @@ -129,7 +129,7 @@ A preview on an existing Space refuses `--name`, `--mode`, and a non-`auto` `--s

## Reading the receipt

The fields worth branching on in a script:
The fields a script usually checks:

| Field | Use |
| --- | --- |
Expand Down
4 changes: 2 additions & 2 deletions content/(publish)/frameworks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ Logs are capped at 500 entries and 512 KiB per build. Past that the oldest entri
| Per-phase timeout | 180 seconds |
| Build output archive | 512 MiB by default |

Your build commands are never retried automatically. A crashed run fails the build deterministically instead of silently running your commands a second time. Only infrastructure failures that happen before the build starts are requeued, at most twice.
Spacefast doesn't retry your build commands. If a run crashes, the build fails instead of running your commands again. Only infrastructure failures that happen before the build starts are requeued, at most twice.

Retrying is explicit and makes a **new** build, linked back to the original and reusing its exact input and settings snapshot.

Expand Down Expand Up @@ -224,7 +224,7 @@ export default defineConfig({
});
```

Same routing conventions as the Astro integration, plus a check that the build is actually publishable. `mode` defaults to `static`, and a static build with no `.html` file anywhere in the output fails rather than deploying a blank site. `mode: "spa"` writes an `/index.html` fallback for `/*` instead. A `build.ssr` config is refused outright unless you pass `allowSsrBuild`. Needs Vite 6 or newer. TanStack Start has its own entry point at `@spacefast/vite-plugin/tanstack-start`.
Same routing conventions as the Astro integration, plus a check that the build can be published. `mode` defaults to `static`, and a static build with no `.html` file anywhere in the output fails rather than deploying a blank site. `mode: "spa"` writes an `/index.html` fallback for `/*` instead. A `build.ssr` config is refused outright unless you pass `allowSsrBuild`. Needs Vite 6 or newer. TanStack Start has its own entry point at `@spacefast/vite-plugin/tanstack-start`.

### `@spacefast/next-adapter`

Expand Down
4 changes: 2 additions & 2 deletions content/(publish)/git.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ sidebar:

Keep your source in Git and publish from a Spacefast remote or a connected GitHub repository. Connected repository pushes queue builds only when auto-deploy is enabled for that branch; deleting a branch does not build it.

Two lanes. The Spacefast remote needs no external host and no app install. A GitHub connection keeps your repository where it is and reacts to its webhooks.
There are two ways to connect. The Spacefast remote needs no external Git provider and no app install. A GitHub connection keeps your repository where it is and reacts to its webhooks.

The `sf git` and `sf source` command families name the same two connection types in different words — on purpose, not a typo.
The `sf git` and `sf source` command families use different names for the same two connection types.

## Source and deployment files

Expand Down
14 changes: 7 additions & 7 deletions content/(publish)/publish.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Publishing
description: What one sf publish actually does, which files it sends, how change-only uploads work, and what the receipt tells you
description: What one sf publish does, which files it sends, how change-only uploads work, and what the receipt tells you
sidebar:
order: 1
---
Expand Down Expand Up @@ -64,7 +64,7 @@ Publishing walks the directory and builds a manifest. Three things can happen to

### Dropped without complaint

Some paths are never worth failing a whole publish over, so they are dropped and counted instead. Exact names at any depth:
Some paths are dropped and counted instead of failing the publish. Exact names at any depth:

```text
.DS_Store .gitignore .npmrc .netrc
Expand Down Expand Up @@ -93,7 +93,7 @@ These fail the publish rather than getting dropped, because silently ignoring th
| Under a runtime control prefix, such as a top-level `__sf` or `__spacefast` | `static_runtime_control_path_not_supported` |
| Two entries that canonicalize to the same path | `manifest_duplicate_path` |

Two artifacts claiming the same request route also stop the publish, so a lookup-order coin flip never decides which one visitors get.
Two artifacts that claim the same request route also stop the publish, so visitors never get an arbitrary one of them.

### Size and count

Expand All @@ -117,7 +117,7 @@ Every declared file carries a `sha256`. The server compares your declaration aga
{ "upload": 3, "reused": 41, "ignored": 0 }
```

Deleting a file means leaving it out of the declaration. There is no delete list. That has one consequence worth knowing:
Deleting a file means leaving it out of the declaration. There is no delete list, which has one consequence:

| Mode | What your file list means |
| --- | --- |
Expand All @@ -136,7 +136,7 @@ noop_publish

That diagnostic is the only signal. There is no separate boolean.

One catch. A file declared without a `sha256` cannot prove it is unchanged, so a manifest missing any hash always materializes a new version.
A file declared without a `sha256` can't be shown to be unchanged, so a manifest missing any hash always creates a new version.

## Waiting, or not

Expand All @@ -148,7 +148,7 @@ On the CLI it is `--wait` (on by default), `--no-wait`, and `--wait-timeout` in

## Reading the receipt

The parts you actually read:
The fields you'll use most:

| Field | What it tells you |
| --- | --- |
Expand Down Expand Up @@ -208,7 +208,7 @@ An archive that needs a build returns a receipt with a `build` object and `next.
| `slug_reserved`, `slug_unavailable` | The slug you asked for is taken or held | Take the `details.suggestion` |
| `space_selection_conflict` | You passed both a Space and a creation-only flag such as `--access` | Drop the creation flag |

Every code, with whether it is worth retrying, is on [Error codes](/api/errors).
Every code, and whether to retry it, is on [Error codes](/api/errors).

## Next steps

Expand Down
2 changes: 1 addition & 1 deletion content/(publish)/recipes/astro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default defineConfig({

## The gotcha

The integration's `failOnRoutingError` defaults to `true`. A malformed line in `_redirects` or `_headers` stops `astro build` with an error rather than shipping a site whose routing quietly does nothing. That is the point of it, but it does mean adding the integration can break a build that used to pass. Set `failOnRoutingError: false` to downgrade it to a log line while you fix the file.
The integration's `failOnRoutingError` defaults to `true`. A malformed line in `_redirects` or `_headers` stops `astro build` with an error instead of shipping a site whose routing silently doesn't work. This means adding the integration can break a build that used to pass. Set `failOnRoutingError: false` to downgrade it to a log line while you fix the file.

The integration needs Astro 6 or newer. Everything else on this page works on any Astro version, because publishing `dist` is a file upload.

Expand Down
2 changes: 1 addition & 1 deletion content/(publish)/recipes/vite.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ For a single-page app, say so:
spacefast({ mode: "spa" });
```

That writes an `/index.html` fallback for `/*` into the output, and then checks the fallback file actually exists. A `build.ssr` config is refused outright unless you pass `allowSsrBuild`.
That writes an `/index.html` fallback for `/*` into the output, and then checks that the fallback file exists. A `build.ssr` config is refused outright unless you pass `allowSsrBuild`.

The plugin needs Vite 6 or newer. TanStack Start has its own entry point at `@spacefast/vite-plugin/tanstack-start`. More on [Frameworks and builds](/frameworks).
2 changes: 1 addition & 1 deletion content/(publish)/wordpress-data-sources.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Build from a WordPress site
description: Point a Space's repository build at a public WordPress site, read its content over the REST API during the build, and publish the static output
---

Data sources only reach repository builds — a folder publish, or a local `sf publish` of a built directory, never sees them.
Data sources only reach repository builds. A folder publish, or a local `sf publish` of a built directory, doesn't get them.

A data source is a public WordPress site a build reads content from. Nothing is copied into the Space and nothing is written back. The platform hands the build a URL and a source map. Your build code fetches over the WordPress REST API, and the output publishes like any other static build.

Expand Down
2 changes: 1 addition & 1 deletion content/(reference)/config-file.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Project config reference
description: Every key the project config accepts in spacefast.config.ts or sf.jsonc, how the CLI finds the file, and which defaults the finalizer actually computes
description: Every key the project config accepts in spacefast.config.ts or sf.jsonc, how the CLI finds the file, and which defaults Spacefast computes
sidebar:
order: 1
---
Expand Down
4 changes: 2 additions & 2 deletions content/(reference)/glossary.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ The drag-and-drop publish flow at [drop.fast](https://drop.fast): drag a folder,

## Functions

The runtime for shipping a worker alongside your Space — npm packages, framework server output, outbound HTTP. The other option, alongside [Zero](#zero), for Spaces that need more than static files. See [Functions](/functions).
The runtime that runs a server worker next to your Space, with npm packages, framework server output, and outbound HTTP. It and [Zero](#zero) are the two options for Spaces that need more than static files. See [Functions](/functions).

## Grant

One rule in a Space's access list: it names an audience (public, team, one person, a link, a password, a machine, or an external identity) and what that audience can do. A Space has no public-or-private flag — its access is just the sum of its grants. See [Spacefast Share](/share).
One rule in a Space's access list: it names an audience (public, team, one person, a link, a password, a machine, or an external identity) and what that audience can do. A Space has no public or private switch. Its grants alone decide who can reach it. See [Spacefast Share](/share).

## Live (the live channel)

Expand Down
2 changes: 1 addition & 1 deletion content/(reference)/limits.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,4 @@ Publishing, building, and creating spaces carry their own hourly budgets that sc

Read the rate-limit headers and the error's retry information for the active budget. These safeguards are separate from the plan allowances above.

Full rate limit behavior, including what happens when the accounting backend is down, is on the [Rate limits](/api/rate-limits). For what each error code means and whether it is worth retrying, see [Error codes](/api/errors).
Full rate limit behavior, including what happens when the accounting backend is down, is on the [Rate limits](/api/rate-limits). For what each error code means and whether to retry it, see [Error codes](/api/errors).
Loading
Loading