commit c7bebb01c2fd03c59e713b56b3a847a3af527448
parent 74db874cf2132ca092bf86f92f4238c433916b69
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date: Sun, 2 Apr 2023 15:50:07 +0200
feat: use REACT_APP_SUPABASE_URL env var
Diffstat:
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
@@ -5,7 +5,8 @@ Live heats, scoring and leaderboard for sport events.
## Running the App
```bash
-# Export Supabase database credential for anonymous access
+# Export Supabase URI and database access key
+export REACT_APP_SUPABASE_URL=
export REACT_APP_SUPABASE_KEY=
# Start app
@@ -115,4 +116,4 @@ All source code is available in this repository. Contributions are always welcom
For question and support visit [#myheats/libera](https://web.libera.chat/gamja/#myheats) on IRC.
## License
-This work uses the MIT License. See [LICENSE](./LICENSE) for details.
-\ No newline at end of file
+This work uses the MIT License. See [LICENSE](./LICENSE) for details.
diff --git a/src/supabaseClient.js b/src/supabaseClient.js
@@ -1,6 +1,6 @@
import { createClient } from '@supabase/supabase-js'
-const supabaseUrl = 'https://aaxkgqazjhwumoljibld.supabase.co'
+const supabaseUrl = process.env.REACT_APP_SUPABASE_URL
const supabaseKey = process.env.REACT_APP_SUPABASE_KEY
-export const supabase = createClient(supabaseUrl, supabaseKey)
-\ No newline at end of file
+export const supabase = createClient(supabaseUrl, supabaseKey)