create-keystone-app 8.0.1 → 8.0.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/package.json
CHANGED
|
@@ -104,7 +104,7 @@ var import_crypto = require("crypto");
|
|
|
104
104
|
var import_auth = require("@keystone-6/auth");
|
|
105
105
|
var import_session = require("@keystone-6/core/session");
|
|
106
106
|
var sessionSecret = process.env.SESSION_SECRET;
|
|
107
|
-
if (!sessionSecret &&
|
|
107
|
+
if (!sessionSecret && process.env.NODE_ENV !== "production") {
|
|
108
108
|
sessionSecret = (0, import_crypto.randomBytes)(32).toString("hex");
|
|
109
109
|
}
|
|
110
110
|
var { withAuth } = (0, import_auth.createAuth)({
|
|
@@ -133,3 +133,5 @@ var keystone_default = withAuth(
|
|
|
133
133
|
session
|
|
134
134
|
})
|
|
135
135
|
);
|
|
136
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
137
|
+
0 && (module.exports = {});
|