Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Optimize middleware.ts by reducing repetitive code #1015

Closed
wants to merge 2 commits into from

Commits on Sep 24, 2024

  1. refactor: Optimize middleware.ts by reducing repetitive code

    - Replaced multiple individual redirect conditions with a loop-based solution using an array of redirect paths.
    - Centralized the redirect logic into a `redirects` array that contains the paths, target, and host for each redirection.
    - Improved code maintainability and readability by reducing the number of repetitive `if` statements.
    cypherpepe authored Sep 24, 2024
    Configuration menu
    Copy the full SHA
    301b2e3 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2024

  1. Configuration menu
    Copy the full SHA
    898e05d View commit details
    Browse the repository at this point in the history