Goal
Understand the runtime settings that matter after the app image exists.Prerequisites
- An existing project
Workflow
1
Set environment variables and confirm whether the project should expose public ingress at all.
2
Review service type, workload type, resource preset, timeout, and storage settings.
3
Attach and manage domains for the project.
4
Use preview-related surfaces when they are available for your project flow.
Environment variable behavior
- Project variables are encrypted at rest.
- Saving edits triggers a new deployment so the runtime picks up the changes.
- Project-level variables override global variables with the same key.
- Pull request previews use only the preview environment’s variables. Global variables and production database bindings never reach a preview, so set anything a preview needs in its preview environment.
- Pending worker release: a positive decimal
MEDIA_MAX_BYTESupload limit is excluded from credential-publication matching even if imported as secret. Its encryption and masking remain unchanged. Other keys, including numeric passwords and tokens, remain subject to secret scanning.
Variables during the build
Every variable is available to both the build and the running app; there is nothing to configure. Secret values reach the build as temporary mounts and are never written into the image or the build cache. A database connected in the application gives the build a placeholder value for its variable, such asDATABASE_URL, that cannot connect, so tools like prisma generate can load their config; your app gets the real connection when it starts. Run migrations in the release command, not the build command.
If a secret variable’s value is written in your code, the build stops and names the file and line. Remove the value from that line and read it from the environment variable instead, for example process.env.API_KEY. Keep the variable set in your environment settings: clearing it does not unblock the build, and your app still needs it. Because the value was in your code, rotate it with its provider. If the value isn’t really secret, such as a bucket name or a public URL, keep it set and turn off Secret for it.
Advanced runtime settings
- Service type decides whether the project behaves as a web service or worker service.
- Worker services do not expose public ingress, so URL and custom-domain expectations should be adjusted accordingly.
- Workload type can be web, API, worker, or contract build. Contract build means build-only with no deployed runtime.
- Resource preset controls baseline RAM and CPU sizing.
- Startup timeout ranges from 30 to 600 seconds and should be raised for chain sync, indexers, or slow boot paths.
- Web3 enabled is auto-detected when possible but remains user-overridable.
Persistent storage rules
- Persistent volume is disabled at size 0 and enabled from 1 to 100 GB.
- Mount paths must begin with
/and cannot target reserved system directories. - When editing an existing project, resizing storage requires redeploy, but retained data is preserved.
Preview deployment behavior
- Preview deployments are tied to GitHub-backed projects rather than raw image projects.
- Preview availability is plan-gated and the UI calls that out directly when locked.
- Preview rows expose branch, PR number, live URL, expiry timing, and build-log entry points.
Custom domains in practice
Domains can be attached from the project side or from the domains product area. After attachment, DNS propagation and SSL activation may still take time even when the connection action itself succeeds. If the project is configured as a worker service, domains can still exist in inventory but they should not be treated as active public ingress for that runtime.Expected result
The project is configured beyond just “it deployed once”.
Related guides
Configure email providers
Use your own SMTP server or provider account for outbound email on projects and stacks, including BYOS connected-node workloads.
DNS records and project connection
Manage DNS records and connect domains to projects or other runtime surfaces.
Domain search, purchase, and portfolio
Find and acquire domains, then understand how they appear in the domain portfolio.
Project troubleshooting
Common project-side failure modes, especially when the app built successfully but does not come up healthy.