Commit 62273d44 authored by Mahmoud Aglan's avatar Mahmoud Aglan

fix: append apikey to public storage URLs for Kong gateway access

Kong requires the apikey query param for public object access via img tags.
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 5e732b7a
......@@ -77,7 +77,7 @@ class SupabaseStorage
public function getPublicUrl(string $bucket, string $path): string
{
return SUPABASE_URL . "/storage/v1/object/public/{$bucket}/{$path}";
return SUPABASE_URL . "/storage/v1/object/public/{$bucket}/{$path}?apikey=" . SUPABASE_ANON_KEY;
}
public function getSignedUrl(string $bucket, string $path, int $expiresIn = 3600): string
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment