mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -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",
|
||||
"pattern": "^/(makeit)?fly/?$",
|
||||
"pattern": "^/fly/?$",
|
||||
"routeAlias": "/(makeit)?fly/?$",
|
||||
"redirect": "/projects/editor/?tutorial=make-it-fly"
|
||||
},
|
||||
{
|
||||
"name": "makeitfly-tutorial-redirect",
|
||||
"pattern": "^/makeitfly/?$",
|
||||
"routeAlias": "/(makeit)?fly/?$",
|
||||
"redirect": "/projects/editor/?tutorial=make-it-fly"
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue