@varlock/nextjs-integration 0.3.5 → 0.3.6
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/next-env-compat.js
CHANGED
|
@@ -14692,9 +14692,9 @@ function loadEnvConfig(dir, dev, _log = console, forceReload = false, _onReload)
|
|
|
14692
14692
|
const cleanEnv = { ...exports.initialEnv };
|
|
14693
14693
|
delete cleanEnv.DEBUG_VARLOCK;
|
|
14694
14694
|
const varlockLoadedEnvStr = execSyncVarlock(`load --format json-full --env ${envFromNextCommand}`, {
|
|
14695
|
-
|
|
14696
|
-
//
|
|
14697
|
-
|
|
14695
|
+
// We handle all error display and exit logic ourselves in the catch block
|
|
14696
|
+
// so we can silently defer on serverless platforms where the binary is missing.
|
|
14697
|
+
showLogsOnError: false,
|
|
14698
14698
|
exitOnError: false,
|
|
14699
14699
|
env: cleanEnv
|
|
14700
14700
|
});
|
|
@@ -14717,6 +14717,9 @@ function loadEnvConfig(dir, dev, _log = console, forceReload = false, _onReload)
|
|
|
14717
14717
|
].join("\n"));
|
|
14718
14718
|
process.exit(1);
|
|
14719
14719
|
}
|
|
14720
|
+
const errAny = err;
|
|
14721
|
+
if (errAny.stdout) console.log(errAny.stdout.toString());
|
|
14722
|
+
if (errAny.stderr) console.error(errAny.stderr.toString());
|
|
14720
14723
|
console.error("[varlock] \u26A0\uFE0F failed to load env \u2014 see error above");
|
|
14721
14724
|
if (!dev) {
|
|
14722
14725
|
process.exit(err.status ?? 1);
|