Currently, bitcentivez
(git) has the same problem as the original bitcentive
, illustrated by this:
http://bitcentive.herokuapp.com/test/test.js
The web server is serving directories and files that should not be needed for the static site, which is built into ./dist
. I would prefer if the server only served files in ./dist
, but I am not sure if this is possible with the done-ssr
and steal
combination (ssr
, in particular).
What configuration changes would be needed to make this work?
For instance, in my “bitcentivez
” repo, done-ssr-middleware
pulls the configuration for the static site from client/package.json
, and therefore serves all of the client
directory.
Similarly, steal
relies on package.json
for configuration.
Attempting to cp client/package.json client/dist/package.json
and pointing done-ssr-middleware
to client/dist/package.json
doesn’t seem to work because there is an error about finding the built ./dist/<etc>/index.js
.
It seems it is trying to resolve ./dist
relative to an outer directory, assuming the site is built into ./dist/dist
, and doesn’t understand or accept package.json
being copied to ./dist
.
I haven’t been able to find the relevant ssr
code that would be causing this, however.
I’m assuming @matthewp might have some ideas in regards to this!
It might be something super simple. Thanks for any help.