@hamak/smart-data-dico 1.8.0 → 1.8.2

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.
@@ -162317,18 +162317,16 @@ mountFrameworkRoutes().catch((err) => {
162317
162317
  logger.warn(`Failed to mount framework routes: ${err}`);
162318
162318
  });
162319
162319
  if (config.isProduction) {
162320
- const getServerDir = new Function("return new URL(import.meta.url).pathname");
162321
- const serverDir = path13.dirname(getServerDir());
162322
162320
  const candidates = [
162323
- path13.join(serverDir, "..", "..", "frontend", "dist"),
162324
- // npm package (server is at backend/src/)
162321
+ process.env.SDD_FRONTEND_DIST || "",
162322
+ // npm package (set by bin/cli.js)
162325
162323
  path13.join(process.cwd(), "public"),
162326
162324
  // Docker (copied to public/)
162327
162325
  path13.join(process.cwd(), "..", "frontend", "dist"),
162328
162326
  // monorepo dev
162329
162327
  path13.join(process.cwd(), "frontend", "dist")
162330
162328
  // alt layout
162331
- ];
162329
+ ].filter(Boolean);
162332
162330
  const publicDir = candidates.find((d) => {
162333
162331
  try {
162334
162332
  return fs5.statSync(d).isDirectory();
package/bin/cli.js CHANGED
@@ -114,6 +114,7 @@ const child = spawn(bin, binArgs, {
114
114
  NODE_ENV: 'production',
115
115
  PROFILE: process.env.PROFILE || 'local',
116
116
  DATA_DIR: dataDir,
117
+ SDD_FRONTEND_DIST: frontendDist,
117
118
  },
118
119
  stdio: 'inherit',
119
120
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hamak/smart-data-dico",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
4
4
  "description": "Collaborative data dictionary management system — model, document, and govern your data landscape",
5
5
  "type": "module",
6
6
  "bin": {