Skip to content

Commit b45195c

Browse files
committed
improvement(supabase): add Edge Functions tool; correct storage output shapes + harden tools
- Add supabase_invoke_function tool (POST/GET/PUT/PATCH/DELETE /functions/v1/{name}) - upsert: support on_conflict; storage upload: support cache-control - Fix storage copy/move/upload/delete-bucket output properties to match live API - get_public_url: build URL via directExecution (no spurious network call) - text_search: validate column identifier - Strip non-TSDoc section-label comments
1 parent 8b93e43 commit b45195c

13 files changed

Lines changed: 338 additions & 88 deletions

File tree

apps/sim/app/api/tools/supabase/storage-upload/route.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ export const POST = withRouteHandler(async (request: NextRequest) => {
174174
'Content-Type': uploadContentType,
175175
}
176176

177+
if (validatedData.cacheControl) {
178+
headers['cache-control'] = validatedData.cacheControl
179+
}
180+
177181
if (validatedData.upsert) {
178182
headers['x-upsert'] = 'true'
179183
}

0 commit comments

Comments
 (0)