Skip to content

Conversation

@ben-fornefeld
Copy link
Member

@ben-fornefeld ben-fornefeld commented Nov 10, 2025

Note

Adds an authenticated GET route at /sbx/new that creates an E2B sandbox and redirects to its inspect page, with error handling and sign-in redirects.

  • Routes:
    • New GET src/app/sbx/new/route.ts
      • Auth guard via Supabase (createClient, auth.getUser) and getSessionInsecure; redirects to AUTH_URLS.SIGN_IN with returnTo if unauthenticated.
      • Fetches default team with getDefaultTeam and creates E2B sandbox via Sandbox.create('base', { domain: env, headers: SUPABASE_AUTH_HEADERS(token, teamId) }).
      • Redirects to PROTECTED_URLS.SANDBOX_INSPECT(teamSlug, sandboxId) on success.
      • On error: logs (l.warn with serializeError) and redirects to request origin.

Written by Cursor Bugbot for commit d322ab9. This will update automatically on new commits. Configure here.

@linear
Copy link

linear bot commented Nov 10, 2025

@vercel
Copy link

vercel bot commented Nov 10, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
web Ready Ready Preview Comment Nov 10, 2025 3:34pm
web-juliett Ready Ready Preview Comment Nov 10, 2025 3:34pm

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ben-fornefeld ben-fornefeld changed the title add sandbox creation route under /sbx/new Add: sandbox creation route under /sbx/new Nov 10, 2025
@ben-fornefeld ben-fornefeld merged commit 90e871f into main Nov 10, 2025
6 checks passed
@ben-fornefeld ben-fornefeld deleted the feature-create-sandbox-and-redirect-to-inspect-via-url-for-eng-3288 branch November 10, 2025 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants