// 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.php
e 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.sh
toutils/build-and-push.sh
and change info.
bash ./utils/build-and-push.sh