push code len ne

This commit is contained in:
2024-10-28 20:56:21 +07:00
parent 5c1d4e92af
commit ae1aa64b41
7 changed files with 267 additions and 23 deletions

View File

@@ -24,8 +24,14 @@ async function bootstrap() {
process.env.JWT_RS256_PRIVATE_KEY = privateKey;
process.env.JWT_RS256_PUBLIC_KEY = publicKey;
Logger.log(`Private key: ${privateKey.slice(0, 10)}...`, 'Bootstrap');
Logger.log(`Public key: ${publicKey.slice(0, 10)}...`, 'Bootstrap');
Logger.log(
`Private key: ${privateKey.slice(0, 10).replace(/\n/g, '')}...`,
'Bootstrap',
);
Logger.log(
`Public key: ${publicKey.slice(0, 10).replace(/\n/g, '')}...`,
'Bootstrap',
);
const corsOrigin = (process.env.CORS_ORIGIN ?? '').split(','); // split by comma to array
app.enableCors({