auto commit

This commit is contained in:
bangdk 2024-11-10 09:37:57 +09:00
parent 435c758c1b
commit 2b4c2610c2

View File

@ -20,7 +20,9 @@ module.exports = {
expiresIn: process.env.JWT_EXPIRES_IN || "1d",
},
cors: {
origin: process.env.CORS_ORIGIN?.split(","),
origin: process.env.CORS_ORIGIN
? process.env.CORS_ORIGIN.split(",")
: ["*"],
credentials: true,
},
},
@ -40,7 +42,9 @@ module.exports = {
expiresIn: process.env.JWT_EXPIRES_IN || "1d",
},
cors: {
origin: process.env.CORS_ORIGIN?.split(","),
origin: process.env.CORS_ORIGIN
? process.env.CORS_ORIGIN.split(",")
: ["*"],
credentials: true,
},
},