Chapter 168: getRenderProgress()
Core Idea
:::warning Experimental package: We reserve the right to make breaking changes in order to correct bad design decisions until this notice is gone.
Key Concepts
- Example
- Arguments
- sandboxId
- cmdId
- Return value
- See also
Code Examples
export async function GET(req: Request) {
const url = new URL(req.url);
const sandboxId = url.searchParams.get('sandboxId');
const cmdId = url.searchParams.get('cmdId');
if (!sandboxId || !cmdId) {
return Response.json({error: 'Missing params'}, {status: 400});
}
const progress = await getRenderProgress({sandboxId, cmdId});
return Response.json(progress);
}
- What it demonstrates: Usage pattern for getRenderProgress() from the official docs.
Key Takeaways
- Understand example when working with getRenderProgress().
- Understand arguments when working with getRenderProgress().
- Understand sandboxid when working with getRenderProgress().
- Understand cmdid when working with getRenderProgress().
- Understand return value when working with getRenderProgress().
Connects To
- Azure Container Apps: related page in the Deployment & Runtimes section.
- bun: related page in the Deployment & Runtimes section.
- Cloudflare Containers: related page in the Deployment & Runtimes section.