fix(deployment: fixed api key get

This commit is contained in:
Emir Karabeg
2025-03-03 21:30:30 -08:00
parent 0708663b22
commit 39b3c61d3c
+2 -1
View File
@@ -33,7 +33,8 @@ export async function validateWorkflowAccess(
}
// API key authentication
const apiKey = request.headers.get('x-api-key')
const apiKey =
request.headers.get('x-api-key') || request.nextUrl.searchParams.get('X-API-KEY')
if (!apiKey || !workflow.apiKey || apiKey !== workflow.apiKey) {
return {
error: {