View preview environments
-
Navigate to Environments in your project
-
Preview environments appear in the Previews section
-
Each preview shows:
- Available metadata (e.g. pull request ID, branch name)
- Status (running, building, failed)
- Created date
Click on any preview to view its resources and access URLs.
Create a preview environment manually
You can create a preview environment without waiting for a Git trigger:
-
Navigate to Environments
-
Click on a preview blueprint
-
Click Run
-
Select a commit or branch
-
Click Create
This is useful for testing branches before creating pull requests or setting up demo environments.

Access preview services
Each preview environment has unique URLs for accessing deployed services:
-
Click on a preview environment
-
View the Services section
-
Click on a service to see its URL
Preview URLs typically follow the pattern: service-name-pr-123.project.northflank.app
Update a preview environment
Previews automatically update when new commits are pushed to the pull request branch or watched branch.
To manually trigger an update:
-
Click on the preview environment
-
Click Run
-
Select the new commit
-
Click Create
The preview will rebuild and redeploy with the latest code.
Pause preview triggers
You can pause individual triggers without deleting the preview blueprint.
To pause one trigger:
- Open the blueprint editor.
- Open the trigger's form.
- Turn off Enable trigger.
- Save the trigger.
- Save the blueprint.
Pausing a trigger does not delete environments or cancel runs. Manual preview runs remain available. Skipped trigger events are not replayed when you resume.
Automatic cleanup still applies while triggers are paused.
Delete a preview environment
Northflank can delete previews automatically. To delete a preview manually:
-
Click on the preview environment
-
Click Delete
-
Confirm the deletion
All resources created by the preview (services, databases, volumes) are permanently deleted.
Configure automatic cleanup
Use preview expiry to delete previews automatically after a configured lifetime. The expiry timer can reset each time the preview runs again. This also applies to scheduled previews.
Git providers can also request preview deletion when a pull request closes or its branch is deleted. Pausing triggers does not stop preview expiry or deletion from Git events.
To remove a preview sooner, delete it manually.
Preview environment resources
Each preview environment can include:
- Services: Deployment services running your application code
- Databases: Addons like PostgreSQL, MongoDB, or Redis
- Jobs: Background tasks or one-time operations
- Volumes: Persistent storage
- Secret groups: Environment variables and configuration
All resources are isolated to the preview environment and deleted when the preview is deleted.
A default tag is automatically added to each preview environment. Secret groups scoped to this tag are made available only within the preview environment by default.
Manage preview costs
Preview environments consume resources and incur costs. To manage costs:
- Use smaller resource plans for previews than production
- Enable automatic cleanup for closed pull requests
- Set maximum concurrent preview limits
- Delete unused previews manually
- Review preview resource usage regularly
Troubleshoot preview environments
Preview failed to create:
Check the run logs for errors. Verify build configuration and resource availability.
Preview URL not accessible:
Check service port configuration, networking settings, and deployment status.
Preview not updating on new commits:
Verify Git trigger is configured correctly and webhook settings in your Git provider are active.
Preview environment costs too high:
Reduce resource plans, enable automatic cleanup, avoid running too many previews concurrently, or configure your Git triggers to watch fewer pull requests.