@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.
- package/backend/dist/server.mjs +3 -5
- package/bin/cli.js +1 -0
- package/package.json +1 -1
package/backend/dist/server.mjs
CHANGED
|
@@ -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
|
-
|
|
162324
|
-
// npm package (
|
|
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