commit 53f64308ed4a5070e64be71fe6bcc7d49797209b parent baafdf35baf27c795de325d511f8057d2d123547 Author: Yohanes Bandung <bandungpenting@gmail.com> Date: Thu, 15 Aug 2019 20:48:57 +0700 hotfix(Route) => added default route for netlify Diffstat:
| M | src/App.re | | | 6 | +++--- |
| A | src/_redirects | | | 1 | + |
| M | src/index.html | | | 2 | +- |
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/App.re b/src/App.re @@ -34,14 +34,14 @@ let make = () => { let content = () => switch (url.path) { - | ["/uses"] => <UsesScene /> - | ["/"] => <CurViScene /> + | ["uses"] => <UsesScene /> + | [""] => <CurViScene /> | _ => ReasonReact.Router.push(""); <CurViScene />; }; <div className=Styles.container> - <main className=Styles.main> <Styled /> {content()} </main> + <div className=Styles.main> <Styled /> {content()} </div> </div>; }; diff --git a/src/_redirects b/src/_redirects @@ -0,0 +1 @@ +/* /index.html 200 diff --git a/src/index.html b/src/index.html @@ -2,7 +2,7 @@ <html lang="en"> <head> <meta charset="UTF-8"> - <title>ReasonReact Examples</title> + <title>YBBond</title> </head> <body>