Create professional demos and 3D mockups in seconds, directly in your browser
fix: usar nombre estandar de supabase anon key
CristianOlivera108371705be97
diff --git a/README.md b/README.mdindex 2422771..17497d9 100644--- a/README.md+++ b/README.md@@ -1,8 +1,8 @@<div align="center">-<img width="100%" alt="OpenVidShot Hero" src="./public/images/hero-preview.png" />+<img width="100%" alt="openvid Hero" src="./public/images/hero-preview.png" />-# OpenVidShot+# openvid### Professional screen recording & video editing in your browserdiff --git a/app/components/ui/EditorPreview.tsx b/app/components/ui/EditorPreview.tsxindex 766ee26..a034d8a 100644--- a/app/components/ui/EditorPreview.tsx+++ b/app/components/ui/EditorPreview.tsx@@ -1,12 +1,12 @@export default function EditorPreview() {return (<div className="relative max-w-6xl mx-auto">- <div className="absolute -inset-1 bg-gradient-to-b from-neutral-700/10 to-transparent rounded-2xl blur-md -z-10"></div>+ <div className="absolute -inset-1 bg-linear-to-b from-neutral-700/10 to-transparent rounded-2xl blur-md -z-10"></div><div><imgsrc="/images/pages/openvid.webp"- alt="OpenVidShot Editor Preview"+ alt="openvid Editor Preview"className="w-full h-auto object-cover"loading="lazy"/>diff --git a/app/components/ui/RecordingSteps.tsx b/app/components/ui/RecordingSteps.tsxindex 7aa5ca1..55a5e44 100644--- a/app/components/ui/RecordingSteps.tsx+++ b/app/components/ui/RecordingSteps.tsx@@ -67,7 +67,7 @@ export default function InteractiveRecordingSteps() {title: "Inicia la captura",description: (<p>- Haz clic en el botón de abajo. Tu navegador te pedirá qué deseas compartir. Para un rendimiento óptimo y tomas más limpias, te recomendamos seleccionar una <strong>Pestaña</strong> o <strong>Ventana específica</strong>.+ Haz clic en el botón de abajo. Tu navegador te pedirá qué deseas compartir. Para un rendimiento óptimo y tomas más limpias, te recomendamos seleccionar una <strong className="text-gray-200">Pestaña</strong> o <strong className="text-gray-200">Ventana específica</strong>.</p>),isReversed: true,@@ -171,7 +171,7 @@ export default function InteractiveRecordingSteps() {title: "Oculta las distracciones",description: (<p>- Al compartir tu pantalla, tu navegador mostrará automáticamente una barra flotante avisando que la captura está activa. Haz clic en <strong>"Ocultar"</strong> para asegurarte de que no aparezca en tu video final.+ Al compartir tu pantalla, tu navegador mostrará automáticamente una barra flotante avisando que la captura está activa. Haz clic en <strong className="text-gray-200">"Ocultar"</strong> para asegurarte de que no aparezca en tu video final.</p>),isReversed: false,diff --git a/app/config/env.ts b/app/config/env.tsindex 7450e00..76231ef 100644--- a/app/config/env.ts+++ b/app/config/env.ts@@ -11,6 +11,6 @@ export const env = {},supabase: {url: process.env.NEXT_PUBLIC_SUPABASE_URL ?? "",- publishableKey: process.env.NEXT_PUBLIC_SUPABASE_PUBLISHABLE_DEFAULT_KEY ?? "",+ publishableKey: process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY ?? "",},} as const;\ No newline at end of filediff --git a/app/layout.tsx b/app/layout.tsxindex 3fddaf9..6871384 100644--- a/app/layout.tsx+++ b/app/layout.tsx@@ -64,9 +64,9 @@ export const metadata: Metadata = {canonical: "https://openvid.dev/",},icons: {- icon: "/images/metadata/favicon.svg", //32 x 32 px.- shortcut: "/images/metadata/shortcut.svg", //16 x 16 px.- apple: "/images/metadata/apple.svg", //180 x 180 px+ icon: "/images/metadata/favicon.svg",+ shortcut: "/images/metadata/shortcut.svg",+ apple: "/images/metadata/apple.svg",},openGraph: {type: "website",@@ -85,7 +85,7 @@ export const metadata: Metadata = {locale: "es_ES",siteName: "openvid",},- twitter: { // 1200 x 630 px+ twitter: {card: "summary_large_image",title: "openvid - Crea demos profesionales y edita en segundos",description:diff --git a/components/canvas-svg/index.tsx b/components/canvas-svg/index.tsxindex f3b8718..304994d 100644--- a/components/canvas-svg/index.tsx+++ b/components/canvas-svg/index.tsx@@ -1,8 +1,3 @@-/**- * Inline SVG components for canvas elements- * These can be dynamically colored- */-interface SvgProps {color?: string;className?: string;@@ -146,7 +141,6 @@ export const SplashSvg = ({ color = "currentColor", className }: SvgProps) => (</svg>);-// Map of SVG components by IDexport const SVG_COMPONENTS: Record<string, React.FC<SvgProps>> = {"rectangle": RectangleSvg,"circle": CircleSvg,@@ -172,7 +166,6 @@ export const SVG_COMPONENTS: Record<string, React.FC<SvgProps>> = {"splash": SplashSvg,};-// SVG data for each shape (for canvas export) - uses exact same paths as React componentsinterface SvgData {viewBox: string;paths: string;@@ -271,24 +264,16 @@ const SVG_DATA: Record<string, SvgData> = {}};-/**- * Generate a data URL for an SVG with the specified color- * Uses exact same paths and viewBox as the React components for consistent rendering- */export function getSvgDataUrl(svgId: string, color: string): string {const svgData = SVG_DATA[svgId];if (!svgData) return '';- // Determine if this SVG uses stroke instead of fill (arrows use stroke)const usesStroke = svgData.paths.includes('stroke-linecap') || svgData.paths.includes('stroke-linejoin');- // Apply color to the pathlet styledPath: string;if (usesStroke) {- // For stroke-based SVGs (arrows, etc.)styledPath = svgData.paths.replace(/<path/g, `<path fill="none" stroke="${color}"`);} else {- // For fill-based SVGs (shapes, decorative elements)styledPath = svgData.paths.replace(/<(path|rect|circle)/g, `<$1 fill="${color}" stroke="${color}"`);}diff --git a/utils/supabase/client.ts b/utils/supabase/client.tsindex 1c3f562..6a36ca7 100644--- a/utils/supabase/client.ts+++ b/utils/supabase/client.ts@@ -1,7 +1,7 @@import { createBrowserClient } from "@supabase/ssr";const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL;-const supabaseKey = process.env.NEXT_PUBLIC_SUPABASE_PUBLISHABLE_DEFAULT_KEY;+const supabaseKey = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY;if (!supabaseUrl || !supabaseKey) {throw new Error("Missing Supabase environment variables");diff --git a/utils/supabase/middleware.ts b/utils/supabase/middleware.tsindex 8b7d3b1..d89549e 100644--- a/utils/supabase/middleware.ts+++ b/utils/supabase/middleware.ts@@ -2,7 +2,7 @@ import { createServerClient } from "@supabase/ssr";import { type NextRequest, NextResponse } from "next/server";const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL;-const supabaseKey = process.env.NEXT_PUBLIC_SUPABASE_PUBLISHABLE_DEFAULT_KEY;+const supabaseKey = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY;if (!supabaseUrl || !supabaseKey) {throw new Error("Missing Supabase environment variables");diff --git a/utils/supabase/server.ts b/utils/supabase/server.tsindex 755c663..6046bd7 100644--- a/utils/supabase/server.ts+++ b/utils/supabase/server.ts@@ -2,7 +2,7 @@ import { createServerClient } from "@supabase/ssr";import { cookies } from "next/headers";const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL;-const supabaseKey = process.env.NEXT_PUBLIC_SUPABASE_PUBLISHABLE_DEFAULT_KEY;+const supabaseKey = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY;if (!supabaseUrl || !supabaseKey) {throw new Error("Missing Supabase environment variables");