// examples/app/index.php
function func(array $event): string
{
return json_encode([
'statusCode' => 200, // or other
'headers' => [
'any_header' => 'value'
],
'body' => 'Success',
]);
}Se o arquivo for
examples/app/index.phpe a função alvo forfunc, o CMD precisa serexamples/app/index.func.Exemplo:
CMD [ "examples/app/index.func" ]( ! ) First copy
utils/build-and-push-demo.shtoutils/build-and-push.shand change info.
bash ./utils/build-and-push.sh