Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,8 @@
"eslint-plugin-react-hooks": "^7.1.1",
"http-server": "^14.1.1",
"jsdom": "^29.1.1",
<<<<<<< HEAD
"knip": "^6.24.0",
"prettier": "^3.8.4",
=======
"knip": "^6.18.0",
"prettier": "^3.9.4",
>>>>>>> origin/main
"prettier": "^3.8.4",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"react-router": "^8.1.0",
Expand Down
23 changes: 22 additions & 1 deletion src/config/env-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,31 @@ const LOCAL_CONFIG: EnvConfig = {
RELEASES_BASE_URL: ''
}

// Railway-hosted instance of the offline local stack (edison-watch project,
// demo environment, service "local-stack-backend"). Same TEST_AUTH_MODE=local
// backend as LOCAL_CONFIG (GoTrue proxied at /auth/v1, edge functions
// reimplemented at /functions/v1), but reached at a fixed public URL, so no
// origin rewriting applies. MCP (FastMCP, container port 3000) has no public
// Railway domain yet; MCP_BASE_URL stays empty until one is created, which
// only disables MCP health checks and client-config rewrites.
const TEMP_LOCAL_STACK_CONFIG: EnvConfig = {
SUPABASE_URL: 'https://local-stack-backend-demo.up.railway.app',
SUPABASE_ANON_KEY: 'local-anon-key',
FUNCTIONS_URL: 'https://local-stack-backend-demo.up.railway.app',
SENTRY_DSN: '',
POSTHOG_API_KEY: '',
POSTHOG_FEEDBACK_SURVEY_ID: '',
DEPLOY_ENV: 'temp-local-stack',
API_BASE_URL: 'https://local-stack-backend-demo.up.railway.app',
MCP_BASE_URL: '',
RELEASES_BASE_URL: ''
}

const CONFIGS: Record<string, EnvConfig> = {
demo: DEMO_CONFIG,
release: RELEASE_CONFIG,
local: LOCAL_CONFIG
local: LOCAL_CONFIG,
'temp-local-stack': TEMP_LOCAL_STACK_CONFIG
}

/** MCP gateway port (sibling of the dashboard); overridable at build time. */
Expand Down