NordicSemiconductor / asset-tracker-cloud-azure-js

A reference implementation of a serverless backend for an IoT product developed using in TypeScript.
https://docs.nordicsemi.com/bundle/nrf-asset-tracker-saga/
BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

feat: convert functions to v4 #639

Closed pudkrong closed 10 months ago

pudkrong commented 10 months ago

In response to the absence of the function.json file in programming model 4, we will now use the handler.ts file as the initial point for the Azure Function. This file will take on the responsibility of registering the function in Azure, following the modifications outlined in the package.json file, with particular attention to the main property. It's worth noting that during the packaging and deployment process, the file extension will be changed to handler.mjs

Ref: https://learn.microsoft.com/en-us/azure/azure-functions/functions-node-upgrade-v4?tabs=v4