We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9feaa60 commit 3ed9b11Copy full SHA for 3ed9b11
.github/workflows/deploy.yml
@@ -45,7 +45,7 @@ jobs:
45
push: true
46
tags: ghcr.io/maslianok/gitranks-ui:latest
47
build-args: |
48
- MONGODB_URI_AUTH="${{ secrets.MONGODB_URI_AUTH }}"
+ MONGODB_URI_AUTH="mongodb://localhost:27020/auth"
49
50
# 4. SSH to droplet and deploy
51
- name: SSH to droplet and deploy
lib/mongo-client.ts
@@ -1,6 +1,8 @@
1
// This approach is taken from https://github.com/vercel/next.js/tree/canary/examples/with-mongodb
2
import { MongoClient, ServerApiVersion } from 'mongodb';
3
4
+console.log('88888888888aaaaaaaaaaaaaa', process.env.MONGODB_URI_AUTH);
5
+
6
if (!process.env.MONGODB_URI_AUTH) {
7
throw new Error('Invalid/Missing environment variable: "MONGODB_URI_AUTH"');
8
}
0 commit comments