github internxt/drive-web v1.0.570

7 hours ago

Add logic to redirect all production traffic to the canonical drive.internxt.com domain. This ensures consistent URLs and prevents issues with multiple domains pointing to the same app.

Also refactor isProduction() check to be more robust by handling case-insensitive environment values and checking against a list of non-production environment identifiers.

Description

Related Issues

Related Pull Requests

Checklist

  • Changes have been tested locally.
  • Unit tests have been written or updated as necessary.
  • The code adheres to the repository's coding standards.
  • Relevant documentation has been added or updated.
  • No new warnings or errors have been introduced.
  • SonarCloud issues have been reviewed and addressed.
  • QA Passed

Testing Process

Since this new behavior only occurs in production, I’ll modify the preview environment to reproduce it and verify if the issue behaves the same way before merging.

Steps to Test

  1. Go to a non-public URL, for example:
    https://feature-redirect-public-url.drive-web.pages.dev/login
    Expected Result: The app should redirect to the main domain https://drive.internxt.com.

  2. Go to a public share URL, for example:
    https://feature-redirect-public-url.drive-web.pages.dev/sh/file/_gtOlt23Q5KBbyJqpMoT9w/eeae7a7d4b17278a85f600d3ff6b737cb18fbe96749841a5b695efcc1ef6aa28
    Expected Result: The app should not redirect to https://drive.internxt.com.

Additional Notes

Don't miss a new drive-web release

NewReleases is sending notifications on new releases.