add addEnvironment
for custom function
#2474
Labels
feature-request
New feature or request
function
Issue pertaining to Amplify Function
good first issue
Good for newcomers
Environment information
Describe the feature
currently to add environment variables such as GraphQL API endpoint you need to access the environment property using
but adding this would override any env variables directly set on the function, to add the GraphQL url or reference other resources you need to override the property
Use case
keep existing environment variables present on the custom function created in the defineFunction and extend them using
addEnvironment
onbackend.customAPIFunction.addEnvironment
The text was updated successfully, but these errors were encountered: