mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-10-31 10: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
@@ -6,6 +6,15 @@ PROFILE="${1:?usage: with-local-supabase-env.sh <web|admin|mobile|mcp|tests> <co
|
||||
shift
|
||||
[ "$#" -gt 0 ] || { echo "command is required" >&2; exit 2; }
|
||||
|
||||
if [ "$PROFILE" = "mcp" ]; then
|
||||
: "${SAUCI_ADMIN_API_URL:?SAUCI_ADMIN_API_URL is required for MCP}"
|
||||
: "${SAUCI_ADMIN_API_TOKEN:?SAUCI_ADMIN_API_TOKEN is required for MCP}"
|
||||
: "${SAUCI_MCP_API_KEY:?SAUCI_MCP_API_KEY is required for MCP}"
|
||||
exec env SAUCI_ADMIN_API_URL="$SAUCI_ADMIN_API_URL" \
|
||||
SAUCI_ADMIN_API_TOKEN="$SAUCI_ADMIN_API_TOKEN" \
|
||||
SAUCI_MCP_API_KEY="$SAUCI_MCP_API_KEY" "$@"
|
||||
fi
|
||||
|
||||
STATUS_ENV="$(cd "$ROOT" && npx supabase status --workdir apps -o env 2>/dev/null)" || {
|
||||
echo "Local Supabase is not running. Run scripts/dev-local.sh up." >&2
|
||||
exit 1
|
||||
@@ -27,11 +36,6 @@ case "$PROFILE" in
|
||||
mobile)
|
||||
exec env EXPO_PUBLIC_SUPABASE_URL="$API_URL" EXPO_PUBLIC_SUPABASE_ANON_KEY="$ANON_KEY" "$@"
|
||||
;;
|
||||
mcp)
|
||||
exec env PORT=3002 SUPABASE_URL="$API_URL" \
|
||||
SUPABASE_SERVICE_ROLE_KEY="$SERVICE_ROLE_KEY" \
|
||||
SAUCI_MCP_API_KEY="local-sauci-mcp-only" "$@"
|
||||
;;
|
||||
tests)
|
||||
exec env SUPABASE_URL="$API_URL" SUPABASE_ANON_KEY="$ANON_KEY" \
|
||||
SUPABASE_SERVICE_ROLE_KEY="$SERVICE_ROLE_KEY" "$@"
|
||||
|
||||
Reference in new issue
Block a user