Fix dev server by splitting up redirect regex

This pattern works for building/deploying, but not for running locally. Split it up to deal with what express expects a path to look like.
This commit is contained in:
rschamp 2019-10-21 13:51:50 -04:00
parent d9bd2baf15
commit 21a8f4d5be

View file

@ -512,7 +512,13 @@
}, },
{ {
"name": "fly-tutorial-redirect", "name": "fly-tutorial-redirect",
"pattern": "^/(makeit)?fly/?$", "pattern": "^/fly/?$",
"routeAlias": "/(makeit)?fly/?$",
"redirect": "/projects/editor/?tutorial=make-it-fly"
},
{
"name": "makeitfly-tutorial-redirect",
"pattern": "^/makeitfly/?$",
"routeAlias": "/(makeit)?fly/?$", "routeAlias": "/(makeit)?fly/?$",
"redirect": "/projects/editor/?tutorial=make-it-fly" "redirect": "/projects/editor/?tutorial=make-it-fly"
}, },