Edit documentation Edit document
SSR/SSG

Redirects Config

The redirects configuration defines URL redirection rules for a website, ensuring smooth navigation and proper handling of outdated or changed URLs. This is critical for maintaining a good user experience, improving SEO rankings, and avoiding broken links.

Structure of Redirects

Each redirection rule is represented as an object with the following properties:

Property Name Type Description
from string The original URL path to be redirected.
to string The target URL path where the user should be sent.
export const redirects = [
    {
        from: 'string',
        to: 'string'
    },
];