Create new environments and verify their configuration.
Niteshift automatically creates one environment for each of your GitHub repositories. You can create
additional environments for the same repository. Each environment can also include
multiple repositories.
Each environment stores its configuration in a directory in one of your GitHub repositories.
By default, Niteshift uses .niteshift/. Additional environments use directories beneath it,
such as .niteshift/api/ or .niteshift/frontend/, each with a settings.yaml file. All environments
use the same configuration format.
In Settings → Environments → [environment], select Delete Environment and confirm. This
option is available only for additional environments whose configuration has not merged.
Deletion cannot be undone. It removes all of the environment’s stored settings and secrets.
Deletion retains task history and does not remove the configuration files or branch from GitHub. If you
merge the configuration pull request after deleting the environment, Niteshift creates a fresh
environment without secrets.
You can reuse another environment’s setup and resume scripts and service definitions by referencing
their files in settings.yaml. Paths are relative to the directory containing settings.yaml.
For example, .niteshift/api/settings.yaml can use the files in .niteshift/:
When you list multiple files, Niteshift combines their services, tunnels, and generated environment
files in the order listed. In this example, .niteshift/api/services.yaml adds services alongside
those in .niteshift/services.yaml. Later files do not override earlier definitions: duplicate
service names or service preview ports cause a validation error.
Assistant
Responses are generated using AI and may contain mistakes.