diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..f18598b --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,6 @@ +{ + "extends": "next/core-web-vitals", + "rules": { + "react/no-unescaped-entities": "off" + } +} \ No newline at end of file diff --git a/pages/index.js b/pages/index.js index 2217456..3b65802 100644 --- a/pages/index.js +++ b/pages/index.js @@ -40,11 +40,19 @@ import { import Head from "next/head"; // Initialize Supabase client +const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL; +const supabaseAnonKey = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY; + const supabase = createClient( - process.env.NEXT_PUBLIC_SUPABASE_URL, - process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY + supabaseUrl || '', + supabaseAnonKey || '' ); +// Add error handling for missing environment variables +if (!supabaseUrl || !supabaseAnonKey) { + console.error('Missing environment variables for Supabase'); +} + const ITEMS_PER_PAGE = 5; export default function Dashboard() { @@ -220,10 +228,28 @@ export default function Dashboard() { Codex Metrics + + {/* Open Graph / Facebook */} + + - + + + + + {/* Twitter */} + + + + + + + {/* Additional SEO */} + + + diff --git a/public/og-image.png b/public/og-image.png new file mode 100644 index 0000000..47620d6 Binary files /dev/null and b/public/og-image.png differ