From 4fd1557c7de3240857c842b5c878f0c1eedc9bd7 Mon Sep 17 00:00:00 2001 From: albertkun Date: Thu, 18 Jan 2024 21:18:57 -0800 Subject: [PATCH] feat: initial map for app.tsx --- index2.html | 43 +++++++++++++++++++++++++++++++++++++++++++ src/App.tsx | 2 +- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 index2.html diff --git a/index2.html b/index2.html new file mode 100644 index 0000000..970df1e --- /dev/null +++ b/index2.html @@ -0,0 +1,43 @@ + + + + Supabase in Vanilla JS + + + + +
+ + \ No newline at end of file diff --git a/src/App.tsx b/src/App.tsx index f643a0d..a826e4d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -2,7 +2,7 @@ import { useEffect, useRef, useState } from "react"; import maplibre from "maplibre-gl"; import { createClient } from "@supabase/supabase-js"; -const supabase = createClient("https://albertmaps.supabase.co", "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImJhYXNwZWNzcXBtZ2l0dHZkaWFuIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MDUxNzE5NTEsImV4cCI6MjAyMDc0Nzk1MX0.yvkgXVATqe79CSZnKPWWIN83pHM3-Q5buZJrao5BCsc"); +const supabase = createClient("https://baaspecsqpmgittvdian.supabase.co", "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImJhYXNwZWNzcXBtZ2l0dHZkaWFuIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MDUxNzE5NTEsImV4cCI6MjAyMDc0Nzk1MX0.yvkgXVATqe79CSZnKPWWIN83pHM3-Q5buZJrao5BCsc"); function App() { const mapContainer = useRef(null);