@@ -4,7 +4,9 @@ import { AppModule } from './app.module'
async function bootstrap() {
const app = await NestFactory.create(AppModule)
- app.enableCors()
+ app.enableCors({
+ origin: '*'
+ })
await app.listen(3000, '0.0.0.0')
}
bootstrap()
@@ -5,7 +5,7 @@ const { secretId, secretKey } = dotenv.config({
path: ['.env.local', '.env']
}).parsed
-console.log(secretId, secretKey)
+console.log(process.env)
// 引入对应产品版本的 Client
const LkeapClient = tencentcloud.lkeap.v20240522.Client