Closed davidebbo closed 5 days ago
I think I need something like:
publicPath: '/' + path.basename(__dirname) + '/static/OZTreeModule/dist/'
So I'll hard code that and see how it goes
Yes, that looks right. I tested it on my local tree, which is not running in a subfolder, and it didn't break anything. I suspect it will fix things for the subfolder.
Fixed by #914, but @davidebbo noted that there is also some hard-coding in the nginx config:
Closing in favour of https://github.com/OneZoom/OZtree/issues/915
e,g, we run the extinct tree from
/OZtree/extinct
, so we should be getting files from/OZtree/extinct/static
. But we end up with something like:The likely culprit is this hard coded string:
https://github.com/OneZoom/OZtree/blob/a60f32d5aab6176665ff70ce88c469c7dcc92916/webpack.config.js#L46
From @hyanwong: "Claude.ai says I need to use
path.basename(__dirname)
in the webpack config, which sounds likely."