up icon indicating copy to clipboard operation
up copied to clipboard

Add regex capabilities to redirects

Open edlefebvre opened this issue 5 years ago • 0 comments

Prerequisites

  • [x] I am running the latest version. (up upgrade)
  • [x] I searched to see if the issue already exists.
  • [x] I inspected the verbose debug output with the -v, --verbose flag.
  • [ ] Are you an Up Pro subscriber?

Description

It would be great to add regex capabilities to redirects like so:

redirects: {
  "/folder/:slug(regexhere)": {
    "location": "https://.../:slug",
    "status": 301
  }
}

edlefebvre avatar Dec 10 '19 16:12 edlefebvre