mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-22 13:28:04 -05:00
fix(bug): deployment with route (#70)
This commit is contained in:
@@ -71,13 +71,10 @@ export async function GET(request: Request) {
|
||||
return NextResponse.json({ data: {} }, { status: 200 })
|
||||
}
|
||||
|
||||
// Parse the variables and return just the structure without the hashed values
|
||||
const variables = result[0].variables as Record<string, any>
|
||||
// Update the type handling for variables
|
||||
const variables = result[0].variables as Record<string, EnvironmentVariable>
|
||||
const sanitizedVariables = Object.fromEntries(
|
||||
Object.entries(variables).map(([key, value]) => [
|
||||
key,
|
||||
{ key, value: '••••••••' }, // Hide the actual value
|
||||
])
|
||||
Object.entries(variables).map(([key, value]) => [key, { key, value: '••••••••' }])
|
||||
)
|
||||
|
||||
return NextResponse.json({ data: sanitizedVariables }, { status: 200 })
|
||||
|
||||
Reference in New Issue
Block a user