on master help sign in
fix: Update getConfig route to config/common/route

If you have an obelisk project with a obelisk version at 39dc7b4a1616bca1709f4f3d3a3e7469f16395a4 or greater, then it'll default to 127.0.0.1. If you are used to hitting it on localhost:8000 this gets very confusing as you start getting weird jsaddle errors. Just looks like it was slightly broken in https://github.com/obsidiansystems/obelisk/commit/39dc7b4a1616bca1709f4f3d3a3e7469f16395a4#diff-33d8ae62fc950d308753c1f76ab2a58dL87

commit005b1383f52719eaf8f33ea35ec5e0819600ea98 authorBen Kolera <ben.kolera@gmail.com> dateSat 25 May 2019, 09:45 (7 years ago) parentde99fc6
1 file changed+1−1
lib/run/src/Obelisk/Run.hs+1−1
lib/run/src/Obelisk/Run.hs+1−1
@@ -95,7 +95,7 @@ runServeAsset :: FilePath -> [Text] -> Snap ()
9595runServeAsset rootPath = Snap.serveAsset "" rootPath . T.unpack . T.intercalate "/"
9696
9797getConfigRoute :: Map Text Text -> IO (Maybe URI)
98−getConfigRoute configs = case Map.lookup "common/route" configs of
98+getConfigRoute configs = case Map.lookup "config/common/route" configs of
9999 Just r -> case URI.mkURI $ T.strip r of
100100 Just route -> pure $ Just route
101101 Nothing -> do