diff --git a/next.config.ts b/next.config.ts
index e9ffa30..8d0a4a1 100644
--- a/next.config.ts
+++ b/next.config.ts
@@ -2,6 +2,16 @@ import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
+ images: {
+ remotePatterns: [
+ {
+ protocol: 'https',
+ hostname: 'apiilker.edoysoft.com',
+ port: '',
+ pathname: '/storage/v1/object/public/**',
+ },
+ ],
+ },
};
export default nextConfig;
diff --git a/src/app/dashboard/halls/page.tsx b/src/app/dashboard/halls/page.tsx
index d6ca155..1f07b1c 100644
--- a/src/app/dashboard/halls/page.tsx
+++ b/src/app/dashboard/halls/page.tsx
@@ -4,6 +4,7 @@ import { Plus, Users, Edit } from "lucide-react"
import Link from "next/link"
import { Card, CardContent, CardFooter, CardHeader, CardTitle } from "@/components/ui/card"
import { Badge } from "@/components/ui/badge"
+import Image from "next/image"
export default async function HallsPage() {
const supabase = await createClient()
@@ -34,9 +35,6 @@ export default async function HallsPage() {
{halls?.map((hall) => (
- import Image from "next/image"
-
- // ... inside the CardHeader ...
diff --git a/supabase/add_logo_url_to_halls.sql b/supabase/add_logo_url_to_halls.sql
new file mode 100644
index 0000000..98beb60
--- /dev/null
+++ b/supabase/add_logo_url_to_halls.sql
@@ -0,0 +1,3 @@
+-- Add logo_url column to halls table
+alter table halls
+add column logo_url text;
diff --git a/supabase/storage_setup.sql b/supabase/storage_setup.sql
new file mode 100644
index 0000000..c0645e5
--- /dev/null
+++ b/supabase/storage_setup.sql
@@ -0,0 +1,20 @@
+-- 1. Create the storage bucket
+insert into storage.buckets (id, name, public)
+values ('hall-logos', 'hall-logos', true);
+
+-- 2. Enable RLS (although buckets are publicly accessible via the 'public' flag, policies are good practice)
+create policy "Public Access"
+ on storage.objects for select
+ using ( bucket_id = 'hall-logos' );
+
+create policy "Authenticated Uploads"
+ on storage.objects for insert
+ with check ( bucket_id = 'hall-logos' and auth.role() = 'authenticated' );
+
+create policy "Authenticated Updates"
+ on storage.objects for update
+ with check ( bucket_id = 'hall-logos' and auth.role() = 'authenticated' );
+
+create policy "Authenticated Deletes"
+ on storage.objects for delete
+ using ( bucket_id = 'hall-logos' and auth.role() = 'authenticated' );