Remove SITE_URL from frontend

This commit is contained in:
Tuan Dang
2022-12-18 14:30:31 -05:00
parent 4dac03ab94
commit 1447e055d1
5 changed files with 2 additions and 7 deletions
+2 -1
View File
@@ -118,6 +118,7 @@ export default function Integrations() {
* @returns
*/
const handleIntegrationOption = async ({ integrationOption }) => {
try {
// generate CSRF token for OAuth2 code-token exchange integrations
const state = crypto.randomBytes(16).toString("hex");
@@ -131,7 +132,7 @@ export default function Integrations() {
window.location = `https://vercel.com/integrations/infisical-dev/new?state=${state}`;
break;
case 'Netlify':
window.location = `https://app.netlify.com/authorize?client_id=${integrationOption.clientId}&response_type=code&state=${state}&redirect_uri=${integrationOption.redirectURL}`;
window.location = `https://app.netlify.com/authorize?client_id=${integrationOption.clientId}&response_type=code&state=${state}&redirect_uri=${window.location.origin}`;
break;
// case 'Fly.io':
// console.log('fly.io');