Use live Supabase only; disable demo seed when configured
cgen-1807a3ba8bd4446f9c2c38f80b680b19
This commit is contained in:
parent
a31db0a7a7
commit
b886780a20
1 changed files with 2 additions and 1 deletions
|
|
@ -14,6 +14,7 @@ import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
|
||||||
import { User, Settings, LogOut, Bell } from "lucide-react";
|
import { User, Settings, LogOut, Bell } from "lucide-react";
|
||||||
import { useEffect } from "react";
|
import { useEffect } from "react";
|
||||||
import { ensureDemoSeed } from "@/lib/demo-feed";
|
import { ensureDemoSeed } from "@/lib/demo-feed";
|
||||||
|
import { isSupabaseConfigured } from "@/lib/supabase";
|
||||||
|
|
||||||
interface LayoutProps {
|
interface LayoutProps {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
|
|
@ -45,7 +46,7 @@ export default function Layout({ children }: LayoutProps) {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
try {
|
try {
|
||||||
ensureDemoSeed();
|
if (!isSupabaseConfigured) ensureDemoSeed();
|
||||||
} catch {}
|
} catch {}
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue