sapper
sapper copied to clipboard
Serving more than one static folder with sapper export
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is.
I'm trying to make documentation for a library I made using Sapper. I'm using markdown for the rendering engine for manually generated pages. This stuff works well. For the API Docs, I'm using Sphinx to generate the files. I now want to serve a folder called apiref
which is in my main sapper project. In server.js
, I can just write:
polka().
use(
// ...
sirv("apiref", { dev })
)
// ...
But that only works in development
. I want to host the site on Github pages (or similar), but if I run npm run export
, it only hosts the static
folder. I came to know about the --static
option, but that only allows serving of one static folder.
Describe the solution you'd like
Let us use --static
more than one time
Describe alternatives you've considered
I've tried putting the apiref
folder in static
, but that makes a very long route.
How important is this feature to you? I need the API Documentation, so very.
Additional context N/A
If there already is an alternative, please suggest it :)