mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 02:27:37 +00:00
Merge pull request #1022 from Infisical/debug-vercel-integration
Patch Vercel integration for custom preview branches
This commit is contained in:
@@ -950,7 +950,11 @@ const syncSecretsVercel = async ({
|
|||||||
? {
|
? {
|
||||||
teamId: integrationAuth.teamId
|
teamId: integrationAuth.teamId
|
||||||
}
|
}
|
||||||
: {})
|
: {}),
|
||||||
|
...(integration?.path
|
||||||
|
? {
|
||||||
|
gitBranch: integration?.path
|
||||||
|
} : {})
|
||||||
};
|
};
|
||||||
|
|
||||||
const vercelSecrets: VercelSecret[] = (
|
const vercelSecrets: VercelSecret[] = (
|
||||||
@@ -969,7 +973,7 @@ const syncSecretsVercel = async ({
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
integration.targetEnvironment === "preview" &&
|
integration.targetEnvironment === "preview" &&
|
||||||
integration.path &&
|
secret.gitBranch &&
|
||||||
integration.path !== secret.gitBranch
|
integration.path !== secret.gitBranch
|
||||||
) {
|
) {
|
||||||
// case: secret on preview environment does not have same target git branch
|
// case: secret on preview environment does not have same target git branch
|
||||||
@@ -978,7 +982,7 @@ const syncSecretsVercel = async ({
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|
||||||
const res: { [key: string]: VercelSecret } = {};
|
const res: { [key: string]: VercelSecret } = {};
|
||||||
|
|
||||||
for await (const vercelSecret of vercelSecrets) {
|
for await (const vercelSecret of vercelSecrets) {
|
||||||
|
|||||||
Reference in New Issue
Block a user