-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
35 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import axios from "axios"; | ||
|
||
export const axiosApp = axios.create({ | ||
// baseURL: process.env.NEXT_PUBLIC_API_URL | ||
// baseURL: utils.NEXT_PUBLIC_API_URL | ||
baseURL: 'https://platform.flexabledats.com/api/v1.0/' | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const NEXT_PUBLIC_SUPABASE_URL = 'https://sqfhktjlzezxxfvypqiu.supabase.co' | ||
const NEXT_PUBLIC_SUPABASE_API_KEY = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InNxZmhrdGpsemV6eHhmdnlwcWl1Iiwicm9sZSI6ImFub24iLCJpYXQiOjE2NjM5NTM5NzgsImV4cCI6MTk3OTUyOTk3OH0.RCLswqFgQm0VHQj-z6CJX5QP_dL0GKY7_wXPGzKmOfU' | ||
const NEXT_PUBLIC_ORIGIN = 'https://auth.flexabledats.com' | ||
const NEXT_PUBLIC_API_URL = 'https://platform.flexabledats.com/api/v1.0/' | ||
const NEXT_PUBLIC_MARKETPLACE = 'https://marketplace.flexabledats.com' | ||
const NEXT_PUBLIC_PORTAL = 'https://portal.flexabledats.com' | ||
|
||
const envUtils = { | ||
NEXT_PUBLIC_SUPABASE_URL, | ||
NEXT_PUBLIC_SUPABASE_API_KEY, | ||
NEXT_PUBLIC_ORIGIN, | ||
NEXT_PUBLIC_API_URL, | ||
NEXT_PUBLIC_MARKETPLACE, | ||
NEXT_PUBLIC_PORTAL | ||
} | ||
|
||
export default envUtils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
import { createClient } from "@supabase/supabase-js"; | ||
import envUtils from "./envVars"; | ||
|
||
const supabase = createClient( | ||
process.env.NEXT_PUBLIC_SUPABASE_URL, | ||
process.env.NEXT_PUBLIC_SUPABASE_API_KEY | ||
envUtils.NEXT_PUBLIC_SUPABASE_URL, | ||
envUtils.NEXT_PUBLIC_SUPABASE_API_KEY | ||
); | ||
|
||
export default supabase; |