Repository navigation
GPU Boxes: fix the gpushed API host; approve CLI sign-ins in the browser - #9
Merged
Merged
Conversation
api.smartloop.ai/v1/gpushed never reached the gpushed Worker:
api.smartloop.ai is a Supabase custom domain, so the Worker route on it
never ran and the GPU Boxes page got a 404 ("Could not load your GPU box
details"). The API now has its own host. GPUSHED_URL overrides it for
local development.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two gpushed changes for the web app.
1. Call the gpushed API at gpushed-api.smartloop.ai
The GPU Boxes page showed "Could not load your GPU box details". It called
api.smartloop.ai/v1/gpushed, butapi.smartloop.aiis a Supabase custom domain, so the Cloudflare Worker route there never ran and every request got Supabase's 404. The gpushed API now has its own host (smartloop-labs/gpushed#6).GPUSHED_ENDPOINTis nowhttps://gpushed-api.smartloop.ai, with aGPUSHED_URLoverride innext.config.mjsfor local development (likeSLP_BASE_URL).https://app.smartloop.aireturns 204 withaccess-control-allow-origin: https://app.smartloop.ai.2.
/gpushed/cli-login: approve a CLI sign-ingpushed loginnow signs in in the browser (smartloop-labs/gpushed#14). It opens/gpushed/cli-login?code=XXXX-XXXX, and this page:/login?redirect=…first if you're signed out, then brings you back with the same code;POST /auth/cli/approveon the gpushed API with your session, then tells you to go back to the terminal;It isn't behind the superuser-only redirect that
/gpushedhas, so any smartloop user can sign the CLI in.Checks:
tsc --noEmitpasses, andnext buildcompiles and exports/gpushed/cli-login.Order: merge smartloop-labs/gpushed#14 first; it adds the
/auth/cli/*routes. Until then, Approve returns a 404.🤖 Generated with Claude Code