This is a demo of the new configuration format nhost will use to keep the development and cloud environment fully in sync. We are keeping this in beta while we gather feedback and update the documentation.
We are leveraging cuelang to define the schema and validate the configuration. While we update our documentation the schema can be found here.
Two files are relevant to configure your project:
./nhost/nhost.tomlwhich will hold the full configuration for the project. This configuration will be used in both your development environment and your cloud environment so make sure what you push to your git repo is what you will want deployed../secretswill hold secrets for your development environment. Your cloud secrets will need to be defined in the dashboard.
nhost cli envhas been removed.nhost initwill instantiate a new development environment and generate default./nhost/nhost.tomland./secretsfiles.nhost init --remotewill instantiate a new development environment and pull./nhost/nhost.tomland./secretsfrom your cloud environment.nhost config pullcan be used on an existing development environment to pull current versions of./nhost/nhost.tomland./secretsused in the cloud environment.nhost config show-full-examplewill print on screen a full example of the configuration.nhost config validate [--remote]can be used to validate your environments are properly configured.nhost secrets create|delete|list|updateto work with secrets in the cloud environment.
IMPORTANT: When using nhost init --remote and nhost config pull review the downloaded files and make sure you don't push any sensitive information to git.
Something very important to keep in mind is that if you have the file ./nhost/nhost.toml in your connected git repository we will use it to configure your cloud environment overwriting any changes currently in there so make sure your configuration file is what you want in production.
Head to the ./docs folder.
If you have any issue or want to provide feedback regarding usability, documentation or anything else don't hesitate to open an issue in this repository.