react-live
+ Gatsby + koa-static-server
does not work when changing the root path served.
- Run
npm install
to install dependencies. - Run
npm run build
to build the Gatsby app. - Run
npm run server
to serve the Gatsby app with a Koa static server. - Navigate to
localhost:3000/my-app/
- Editing the code snippet doesn't update the live preview.
Changing the koa-static-server
rootPath from /my-app/
to /
works (navigating to localhost:3000
), but for the live application I'm working on, I need to add a prefix to my app route: