mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-26 17:16:11 -05:00
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:
parent
d9bd2baf15
commit
21a8f4d5be
1 changed files with 7 additions and 1 deletions
|
@ -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"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue