From 21a8f4d5beec6758b7342f59bf081e3fee68f7a3 Mon Sep 17 00:00:00 2001 From: rschamp Date: Mon, 21 Oct 2019 13:51:50 -0400 Subject: [PATCH] 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. --- src/routes.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/routes.json b/src/routes.json index d5261c3c4..a56e82126 100644 --- a/src/routes.json +++ b/src/routes.json @@ -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" },