From 8d5c1380ff56eadd2d3af250763874abe2552ed6 Mon Sep 17 00:00:00 2001 From: dharamveergit Date: Sat, 5 Oct 2024 17:35:47 +0530 Subject: [PATCH 1/2] fix: dot env build error (deploy-web) --- apps/deploy-web/package.json | 1 + package-lock.json | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/apps/deploy-web/package.json b/apps/deploy-web/package.json index c8d88dd41..b2cf22ae2 100644 --- a/apps/deploy-web/package.json +++ b/apps/deploy-web/package.json @@ -59,6 +59,7 @@ "clsx": "^2.0.0", "cosmjs-types": "^0.9.0", "date-fns": "^2.29.3", + "dotenv": "^16.4.5", "file-saver": "^2.0.5", "geist": "^1.3.0", "http-proxy": "^1.18.1", diff --git a/package-lock.json b/package-lock.json index 6f45bcfe0..53f1a270c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -310,6 +310,7 @@ "clsx": "^2.0.0", "cosmjs-types": "^0.9.0", "date-fns": "^2.29.3", + "dotenv": "^16.4.5", "file-saver": "^2.0.5", "geist": "^1.3.0", "http-proxy": "^1.18.1", @@ -445,6 +446,18 @@ "integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg==", "license": "MIT" }, + "apps/deploy-web/node_modules/dotenv": { + "version": "16.4.5", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz", + "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, "apps/deploy-web/node_modules/stripe": { "version": "10.17.0", "resolved": "https://registry.npmjs.org/stripe/-/stripe-10.17.0.tgz", From d1cbd3e9249e9766508aaa75b4520187bbf5c584 Mon Sep 17 00:00:00 2001 From: dharamveergit Date: Sat, 5 Oct 2024 17:40:41 +0530 Subject: [PATCH 2/2] fix: gitlab service --- .../src/services/remote-deploy/gitlab-http.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/deploy-web/src/services/remote-deploy/gitlab-http.service.ts b/apps/deploy-web/src/services/remote-deploy/gitlab-http.service.ts index 1b81e8d6d..2e520d7f6 100644 --- a/apps/deploy-web/src/services/remote-deploy/gitlab-http.service.ts +++ b/apps/deploy-web/src/services/remote-deploy/gitlab-http.service.ts @@ -14,7 +14,7 @@ export class GitLabService { } }); - public handleGitLabLogin() { + public loginWithGitLab() { window.location.href = `https://gitlab.com/oauth/authorize?client_id=${browserEnvConfig.NEXT_PUBLIC_GITLAB_CLIENT_ID}&redirect_uri=${process.env.NEXT_PUBLIC_REDIRECT_URI}&response_type=code&scope=read_user+read_repository+read_api+api&state=gitlab`; }