playground-for-node
playground-for-node copied to clipboard
Update Node.js Playground SDK and improve reliability
Summary
This PR updates the Node.js playground to use the latest node-appwrite SDK and improves the reliability of function deployment and execution.
Changes
Dependencies Updated node-appwrite from 14.0.0 to ^21.1.0
Code Improvements
- Added Runtime and ExecutionMethod imports to support new SDK enum-based syntax
- Added deploymentId and variableId variables for tracking resources
- Improved deployment handling: The uploadDeployment function now polls the deployment status every 2 seconds until the deployment is ready, instead of using a fixed 3-second wait. This fixes the "Deployment not found" error that occurred when deployments took longer to build.
Summary by CodeRabbit
Release Notes
-
Dependencies
- Updated the Appwrite SDK to v21.1.0.
-
Improvements
- Enhanced deployment monitoring with status polling and timeout handling for improved reliability during uploads.
✏️ Tip: You can customize this high-level summary in your review settings.