Skip to content

allindevelopers/html-redirections

Repository files navigation

html-redirections

Generate HTML redirections files from a JSON with redirects. See blog post

npx html-redirections example-array.json dist

A single redirect in JSON file has this type:

type Redirect = {
    from: string
    to: string
    delay?: number
    meta?: [
        {
            name: string
            content: string
        }
    ]
}