scaffold_provider
Wrap Next.js root layout with UploadKitProvider to enable React components to communicate with the upload route handler. Use after scaffold_route_handler to complete setup.
Instructions
Return a ready-to-paste snippet that wraps the Next.js root layout with <UploadKitProvider> so React components can talk to the upload route handler.
When to use: right after scaffold_route_handler, to complete the wiring. The snippet goes in app/layout.tsx. Without the provider, UploadKit React components throw at runtime.
Returns: a plain-text string containing a short explanatory note followed by a fenced tsx code block. Takes no parameters — the endpoint path is always /api/uploadkit since that is what scaffold_route_handler produces. Read-only, deterministic, idempotent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||