diff --git a/src/app/api/auth/lookup-email/route.ts b/src/app/api/auth/lookup-email/route.ts index b1aac52..12a42fb 100644 --- a/src/app/api/auth/lookup-email/route.ts +++ b/src/app/api/auth/lookup-email/route.ts @@ -28,7 +28,7 @@ export async function GET(req: NextRequest) { // Layer 1 — the rich subscriber registry (95k+ rows) const { data: sub } = await svc - .schema("bb") + .schema("av") .from("email_subscribers") .select("id, status") .eq("email_domain", email.split("@")[1]) @@ -39,7 +39,7 @@ export async function GET(req: NextRequest) { // Layer 2 — the lean property-specific list const { data: nl } = await svc - .schema("bb") + .schema("av") .from("newsletter_subscribers") .select("id") .ilike("email", email) diff --git a/src/app/home-page/components/NewsletterSignup.tsx b/src/app/home-page/components/NewsletterSignup.tsx index 3c31e26..9bac104 100644 --- a/src/app/home-page/components/NewsletterSignup.tsx +++ b/src/app/home-page/components/NewsletterSignup.tsx @@ -2,17 +2,18 @@ import React, { useState, useId } from "react"; const categories = [ - "Broadcast", - "Post Production", - "Animation", - "AI & Automation", - "Live Production", - "NAB Show", + "Conference Rooms & UC", + "Digital Signage", + "Live Events & Staging", + "Displays & LED", + "Audio", + "AV over IP", + "InfoComm & ISE", ]; export default function NewsletterSignup() { const [email, setEmail] = useState(""); - const [selected, setSelected] = useState(["Broadcast"]); + const [selected, setSelected] = useState(["Conference Rooms & UC"]); const [submitted, setSubmitted] = useState(false); const [error, setError] = useState(""); const [loading, setLoading] = useState(false); diff --git a/src/lib/supabase/client.tsx b/src/lib/supabase/client.tsx index 565c725..6ef4014 100644 --- a/src/lib/supabase/client.tsx +++ b/src/lib/supabase/client.tsx @@ -5,7 +5,7 @@ export function createClient() { process.env.NEXT_PUBLIC_SUPABASE_URL!, process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!, { - db: { schema: process.env.NEXT_PUBLIC_SUPABASE_SCHEMA || 'bb' }, + db: { schema: process.env.NEXT_PUBLIC_SUPABASE_SCHEMA || 'av' }, cookies: { getAll() { if (typeof document === 'undefined') return []; diff --git a/src/lib/supabase/server.tsx b/src/lib/supabase/server.tsx index a1b42f9..70efb8a 100644 --- a/src/lib/supabase/server.tsx +++ b/src/lib/supabase/server.tsx @@ -8,7 +8,7 @@ export async function createClient() { process.env.NEXT_PUBLIC_SUPABASE_URL!, process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!, { - db: { schema: process.env.NEXT_PUBLIC_SUPABASE_SCHEMA || 'bb' }, + db: { schema: process.env.NEXT_PUBLIC_SUPABASE_SCHEMA || 'av' }, cookies: { getAll() { return cookieStore.getAll();