diff --git a/packages/api/src/server.ts b/packages/api/src/server.ts index 980c5b652..dcf573252 100644 --- a/packages/api/src/server.ts +++ b/packages/api/src/server.ts @@ -14,7 +14,7 @@ const rootDir = __dirname; port: process.env.PORT_API ? parseInt(process.env.PORT_API) : 8080, logger: { debug: true, - level: process.env.NODE_ENV === "production" ? "off" : "error", + level: process.env.NODE_ENV === "production" ? "error" : "info", }, mount: { "/v1": [`${rootDir}/controllers/**/*.ts`], diff --git a/scripts/validate.mjs b/scripts/validate.mjs index 3fea74b73..88d51d508 100644 --- a/scripts/validate.mjs +++ b/scripts/validate.mjs @@ -5,9 +5,9 @@ const [major, minor] = process.version.split(".").map((v) => { }); const is16 = major >= 16; -const isDot6 = minor >= 6; +const isDot6 = major === 16 ? minor >= 6 : !(major < 16); const isSupportedVersion = is16 && isDot6; -const versionText = chalk.bold(chalk.underline("16.6 or higher")); +const versionText = chalk.bold(chalk.underline("v16.6 or higher")); if (!isSupportedVersion) { throw warn(