I want to put HTML code that has been generated by Javadoc within a Gatsby site, such that the HTML is accessible only via an authenticated route.
Thus my site might look something like this, using reach/router for routing:
<Layout>
<Router>
<PrivateRoute path={'/docs/api1'} component={MyApiDisplay}/>
<PrivateRoute path={'/docs/api2'} component={MyApiDisplay}/>
<NotFoundComponent default/>
</Router>
</Layout>
where MyApiDisplay is some component which would display the Javadoc, perhaps in an IFrame.
What is the best way of including the HTML into the Gatsby site? The docs suggest using the static folder to hold the HTML, but that is public, which I don't want.