@plyaz/core 1.23.2 → 1.23.3
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/dist/entry-backend.cjs +8 -8
- package/dist/entry-backend.cjs.map +1 -1
- package/dist/entry-backend.mjs +8 -8
- package/dist/entry-backend.mjs.map +1 -1
- package/dist/init/nestjs/index.cjs +8 -8
- package/dist/init/nestjs/index.cjs.map +1 -1
- package/dist/init/nestjs/index.mjs +8 -8
- package/dist/init/nestjs/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/entry-backend.mjs
CHANGED
|
@@ -23696,14 +23696,6 @@ async function configureNestApp(app, options) {
|
|
|
23696
23696
|
result.enabled.push("cors");
|
|
23697
23697
|
logger10.debug("CORS configured", { ...corsConfig });
|
|
23698
23698
|
}
|
|
23699
|
-
const prefix = config.globalPrefix !== false ? config.globalPrefix ?? "api" : void 0;
|
|
23700
|
-
if (prefix) {
|
|
23701
|
-
const exclude = config.excludeFromPrefix ?? ["health"];
|
|
23702
|
-
app.setGlobalPrefix(prefix, { exclude });
|
|
23703
|
-
result.enabled.push("globalPrefix");
|
|
23704
|
-
result.paths.prefix = prefix;
|
|
23705
|
-
logger10.debug("Global prefix set", { prefix, exclude });
|
|
23706
|
-
}
|
|
23707
23699
|
if (config.versioning) {
|
|
23708
23700
|
try {
|
|
23709
23701
|
const versionConfig = config.versioning;
|
|
@@ -23744,6 +23736,14 @@ async function configureNestApp(app, options) {
|
|
|
23744
23736
|
result.warnings.push("Failed to enable versioning");
|
|
23745
23737
|
}
|
|
23746
23738
|
}
|
|
23739
|
+
const prefix = config.globalPrefix !== false ? config.globalPrefix ?? "api" : void 0;
|
|
23740
|
+
if (prefix) {
|
|
23741
|
+
const exclude = config.excludeFromPrefix ?? ["health"];
|
|
23742
|
+
app.setGlobalPrefix(prefix, { exclude });
|
|
23743
|
+
result.enabled.push("globalPrefix");
|
|
23744
|
+
result.paths.prefix = prefix;
|
|
23745
|
+
logger10.debug("Global prefix set", { prefix, exclude });
|
|
23746
|
+
}
|
|
23747
23747
|
const swaggerEnabled = isProduction ? typeof config.swagger === "object" && config.swagger.enabled === true || config.swagger === true : config.swagger !== false;
|
|
23748
23748
|
if (swaggerEnabled) {
|
|
23749
23749
|
try {
|