| Option | Best for | How it is configured |
|---|---|---|
| Local dashboard | Development | A local hexclave.config.ts file plus stack dev --config-file .... |
| Cloud dashboard | Production | A hosted project on app.hexclave.com with project ID and keys in your app environment. |
Development Environment
A development environment starts Hexclave for the project you are currently building. It is the recommended default while integrating Hexclave because your project config can live next to your app code inhexclave.config.ts.
Use a development environment when you want to:
- Keep app setup, auth settings, RBAC permissions, email templates, payment products, and similar config in source control.
- Let teammates review config changes in pull requests.
- Try Hexclave apps before creating or connecting a cloud project.
- Run your app with environment variables provided by the Hexclave CLI.
hexclave.config.ts
package.json
hexclave.config.ts. For CLI details, see Stack CLI.
Cloud Dashboard
The cloud dashboard is the hosted Hexclave app at app.hexclave.com. Use it for projects that should live in Hexclave Cloud, especially production projects and projects shared with a team. Use the cloud dashboard when you want to:- Manage a real Hexclave Cloud project.
- Generate production project keys.
- Configure environment-specific settings that should not live in
hexclave.config.ts, such as secrets, sender credentials, trusted domains, and payment test mode. - Let non-developers manage project settings through the hosted dashboard.
.env.local
.env.local
Moving Between Them
To start with a development environment, run the setup wizard and choose the config-file flow:Terminal
Terminal
Terminal
Terminal
Terminal
Terminal
config pull requires stack login. config push supports either stack login or STACK_SECRET_SERVER_KEY.