chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
export * from "./vercelProjectIntegrationSchema";
|
||||
|
||||
export function getVercelInstallParams(request: Request) {
|
||||
const url = new URL(request.url);
|
||||
const code = url.searchParams.get("code");
|
||||
const configurationId = url.searchParams.get("configurationId");
|
||||
const integration = url.searchParams.get("integration");
|
||||
const next = url.searchParams.get("next");
|
||||
|
||||
if (code && configurationId && (integration === "vercel" || !integration)) {
|
||||
return { code, configurationId, next };
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
Reference in New Issue
Block a user