GetPaidX docs

The end-user manual for public and signed-in product features.

Search docs

Keyword search across docs titles, summaries, headings, and curated keywords.

Workspaces and ArtifactsUpdated 2026-03-06

Workspace Defaults, Env Vars, and Runtime Commands

How the Defaults tab controls live preview startup, static preview and published-site paths, JSON env/secrets, and who can open or edit a workspace.

Where you see this in the app

This page documents the Defaults tab inside Workspace config & automations.

The key sections are:

SectionWhat it controls
Runtime defaultsHow preview startup behaves and where files are served from
Env vars (JSON)Plain configuration values available to the workspace
Advanced defaults -> Secrets (JSON)Sensitive values that should not live in normal env text
Save configPersist the current per-post defaults

Runtime defaults and startup mode

The Live preview startup mode sets the app’s overall preview strategy.

ModeEnd-user meaning
AUTO (app first, static fallback)Try a live app preview first, then fall back to static output
LIVE_ONLY (app required)Require a working live app startup path
STATIC_ONLY (never start app)Never try to boot a live app server

The related fields support that mode:

  • Live app start command (optional)
  • Live app install command (optional)
  • Live app working dir

These are best thought of as the startup recipe for the interactive preview.

Preview and published-site paths

The defaults tab separates preview paths from published-site paths on purpose.

FieldMeaning
Static preview directoryFolder used for the in-app static preview
Static preview entry fileFirst file opened for that preview
Static preview routingWhether preview behaves like plain static files or SPA fallback
Published site directoryFolder used when publishing the artifact site
Published site entry fileFirst file opened on the published site
Published site routingStatic-files vs SPA fallback behavior on the published site

Preview and published output often point at the same directory, but they do not have to be treated as the same concept.

Env vars, secrets, and advanced defaults

The JSON fields are per-post defaults, not just one-run overrides.

FieldWhat it is for
Env vars (JSON)Normal named configuration values
Secrets (JSON)Sensitive defaults stored separately in the advanced area
Default container tierPreferred runtime tier for this post

These values are startup context for future workspace sessions and runs. They are not automatically visible to end users in public UI, but they affect how the workspace behaves.

How to think about Save config

Save config stores the current defaults for that post.

The practical mental model is:

  1. use Defaults for persistent post-level behavior,
  2. use the Runs tab for one-off overrides,
  3. save the stable baseline here once the workspace behaves the way you want.

That separation is important. Defaults define the reusable behavior. Manual runs test exceptions.