mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-11-02 02:19:43 +00:00
feat(backend): add standalone data plane
Replace the Supabase application data plane with the Node/PostgreSQL API, migrate mobile, admin, web, and MCP callers, add controlled cutover tooling, and define hardened Dokploy infrastructure.
This commit is contained in:
1 parent
01bb8225ae
commit
006761d3b0
294 files changed
+16259
-6138
No files matched your search
@@ -1,11 +1,19 @@
|
||||
import { createClient } from '@supabase/supabase-js';
|
||||
|
||||
export const supabaseConfig = {
|
||||
export const supabaseConfig = {
|
||||
url: import.meta.env.VITE_SUPABASE_URL,
|
||||
anonKey: import.meta.env.VITE_SUPABASE_ANON_KEY,
|
||||
};
|
||||
|
||||
export const supabase = createClient(
|
||||
supabaseConfig.url,
|
||||
supabaseConfig.anonKey
|
||||
);
|
||||
};
|
||||
|
||||
export const authClient = createClient(
|
||||
supabaseConfig.url,
|
||||
supabaseConfig.anonKey
|
||||
);
|
||||
|
||||
const configuredApiUrl = import.meta.env.VITE_API_URL;
|
||||
|
||||
if (!configuredApiUrl) {
|
||||
throw new Error('Missing required environment variable: VITE_API_URL');
|
||||
}
|
||||
|
||||
export const apiUrl = configuredApiUrl.replace(/\/$/, '');
|
||||
Reference in new issue
Block a user