@sjcrh/proteinpaint-server 2.207.1 → 2.208.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -308,6 +308,15 @@ if (process.argv.find(a => a == 'validate')) {
308
308
  const publicDir = path.join(process.cwd(), './public')
309
309
  if (!serverconfig.backend_only && fs.existsSync(publicDir)) serverconfig.publicDir = publicDir
310
310
 
311
+ // The client bundle (/bin) is served from this container's own CWD/bin when present, taking priority
312
+ // over public/bin (see app.middlewares.js), so instances that share a public/ mount each serve their own
313
+ // bundle without writing to the shared public/bin. Auto-computed from cwd like publicDir, never
314
+ // operator-set. Unlike publicDir, existence is NOT checked here but when the route is mounted: the
315
+ // proteinpaint-front init generates CWD/bin AFTER this config module is first loaded, so the dir may not
316
+ // exist yet at this point.
317
+ const binDir = path.join(process.cwd(), './bin')
318
+ if (!serverconfig.backend_only) serverconfig.binDir = binDir
319
+
311
320
  if (serverconfig.publicDir) {
312
321
  const defaultTarget = path.join(serverconfig.binpath, 'cards')
313
322
  if (!serverconfig.cards) {