Skip to content

Add temp-local-stack env pointing at the Railway-hosted offline stack#18

Merged
IliaMManolov merged 2 commits into
mainfrom
temp-local-stack-env
Jul 10, 2026
Merged

Add temp-local-stack env pointing at the Railway-hosted offline stack#18
IliaMManolov merged 2 commits into
mainfrom
temp-local-stack-env

Conversation

@IliaMManolov

@IliaMManolov IliaMManolov commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

What

Adds a temp-local-stack entry to the env config registry, pointing at the Railway-hosted instance of the offline local stack: service local-stack-backend in the edison-watch project's demo environment (https://local-stack-backend-demo.up.railway.app, running with TEST_AUTH_MODE=local).

Together with the companion desktop PR, this adds a temp-local-stack option to the desktop Developer > Switch Environment menu, so devs can point the app at the shared offline stack without running docker locally.

Design notes

  • Uses fixed absolute URLs (like demo/release) rather than the local config's origin rewriting, so it works in packaged Electron builds where the renderer runs from file://.
  • The backend proxies GoTrue at /auth/v1 and reimplements the edge functions at /functions/v1, so one base URL covers SUPABASE_URL, FUNCTIONS_URL, and API_BASE_URL.
  • MCP_BASE_URL is intentionally empty: FastMCP listens on container port 3000 but the Railway domain only routes to the FastAPI port (3001). An empty value only disables MCP health checks and client-config rewrites; it can be filled in once a port-3000 domain exists.

Also in this PR

Resolves merge-conflict markers that landed in package.json via the knip dependabot merge (faf6216) and broke every npm run in this repo. Pinned to the currently installed versions: knip ^6.18.0, prettier ^3.8.4.

Verified

End-to-end against the live Railway instance: GoTrue signup, password token grant, and GET /functions/v1/get-api-key all succeed and return a working API key.

🤖 Generated with Claude Code


Summary by cubic

Adds a temp-local-stack environment pointing to the Railway-hosted offline stack so devs can use a shared backend without Docker. Also cleans up merge-conflict markers in package.json and package-lock.json to restore npm scripts.

  • New Features

    • Register temp-local-stack with fixed URLs for SUPABASE, Functions, and API at https://local-stack-backend-demo.up.railway.app.
    • Use absolute origins to work in packaged Electron builds.
    • Leave MCP_BASE_URL empty until port 3000 is exposed.
  • Bug Fixes

    • Remove conflict markers in package.json; pin knip to ^6.18.0 and prettier to ^3.8.4.
    • Resolve conflict markers in package-lock.json; keep locked knip@6.24.0 and prettier@3.9.4 which satisfy the pinned ranges.

Written for commit 15392b0. Summary will update on new commits.

Review in cubic

Registers a temp-local-stack EnvConfig targeting the local-stack-backend
service in the edison-watch Railway project (demo environment), which runs
the offline stack (TEST_AUTH_MODE=local) at a fixed public URL. Unlike the
"local" config no origin rewriting applies. MCP_BASE_URL is left empty until
the FastMCP port (3000) gets a public Railway domain.

Also resolves merge-conflict markers that landed in package.json via the
knip dependabot merge (pinned to the installed versions: knip ^6.18.0,
prettier ^3.8.4).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Re-trigger cubic

Same origin as the package.json markers: the knip dependabot merge
committed an unresolved conflict. Kept the locked knip 6.24.0 /
prettier 3.9.4 entries, which satisfy the resolved ranges.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@IliaMManolov IliaMManolov merged commit 7ffb6c7 into main Jul 10, 2026
6 checks passed
@IliaMManolov IliaMManolov deleted the temp-local-stack-env branch July 10, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant