Strapi upgrade to 4.1.12 and get jwtSecret missing issue

Thank you! This issue happened when I deployed it on the cloud, even though I think I saved JWT_SECRET on cloud.
I finally solved it by using this, posted here if anyone encounter the same issue.
var jwtSecret = getSecret(“JWT_SECRET.txt”) || crypto.randomBytes(16).toString(‘base64’);