For some reason, the template implementation of wouter stops working when the project goes to sleep. My project renders a blank page until I load up the editor again, at which point it works as intended for a few hours.
Glitch support had this to say:
It looks like your routing code isn’t working once the editor goes to sleep and the project switches to a Static Site. A little Googling suggests that these normal routers don’t work with static sites and suggest using client side routing or hash routing.
However, wouter claims that it does client-side routing by default. Has anyone run into anything similar?
Project: https://dicebox.glitch.me
Router Code:
<Switch>
<Route path="/:game">{(params) => DiceBox(params.game)()}</Route>
<Route path="*">
{(params) => DiceBox('d20')()}
</Route>
</Switch>
Main Loadpoint:
<Router>
<main role="main" className="wrapper">
<div className="content">
{/* Router specifies which component to insert here as the main content */}
<PageRouter />
</div>
</main>
</Router>