File downloader API to download files from Azure storage account as stream.
Create .env file from .env.example template file. Add the Azure connection settings in environmental file.
Run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the server running.
Call the API with GET request directly from browser or postman
http://localhost:3000/api/downloadFile?id=<containername>&files=<["file1"]>
http://localhost:3000/api/getFiles?id=<containername>
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.