feat: Include project info when deploying Cloud Functions (#19)

This commit is contained in:
Eric Tuvesson
2024-05-17 09:54:56 +02:00
committed by GitHub
parent 4f85055fe8
commit c9243e355b

View File

@@ -74,7 +74,13 @@ export const deployCloudFunctionBuildScript: BuildScript = {
'X-Parse-Application-Id': environment.appId,
'X-Parse-Master-Key': environment.masterKey
},
body: JSON.stringify({ deploy: json, runtime: manifest.version })
body: JSON.stringify({
// Project ID, let the server know about which project is pushing changes.
projectId: context.project.id,
projectName: context.project.name,
deploy: json,
runtime: manifest.version
})
});
// NOTE: Expecting that we always get a JSON response