Skip to content

Conversation

@ivicac
Copy link
Contributor

@ivicac ivicac commented Dec 23, 2025

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements environment-based routing protection to redirect users away from project-related routes when they are not in the development environment. The main change ensures that users in non-development environments are automatically redirected to the deployments page instead of the projects page.

  • Added import for DEVELOPMENT_ENVIRONMENT constant
  • Added a loader function to the projects route that checks the current environment and redirects non-development users to /automation/deployments

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sonarqubecloud
Copy link

@ivicac ivicac merged commit b1db3a9 into master Dec 28, 2025
7 checks passed
@ivicac ivicac deleted the 3793 branch December 28, 2025 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] It is possible to navigate to the Projects page when environment is not DEVELOPMENT

3 participants