Skip to content

Commit 3ed9b11

Browse files
committed
2025.02.19 add logs
1 parent 9feaa60 commit 3ed9b11

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
push: true
4646
tags: ghcr.io/maslianok/gitranks-ui:latest
4747
build-args: |
48-
MONGODB_URI_AUTH="${{ secrets.MONGODB_URI_AUTH }}"
48+
MONGODB_URI_AUTH="mongodb://localhost:27020/auth"
4949
5050
# 4. SSH to droplet and deploy
5151
- name: SSH to droplet and deploy

lib/mongo-client.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// This approach is taken from https://github.com/vercel/next.js/tree/canary/examples/with-mongodb
22
import { MongoClient, ServerApiVersion } from 'mongodb';
33

4+
console.log('88888888888aaaaaaaaaaaaaa', process.env.MONGODB_URI_AUTH);
5+
46
if (!process.env.MONGODB_URI_AUTH) {
57
throw new Error('Invalid/Missing environment variable: "MONGODB_URI_AUTH"');
68
}

0 commit comments

Comments
 (0)