-
Notifications
You must be signed in to change notification settings - Fork 48
Add: sandbox creation route under /sbx/new #183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add: sandbox creation route under /sbx/new #183
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this 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".
Note
Adds an authenticated GET route at
/sbx/newthat creates an E2B sandbox and redirects to its inspect page, with error handling and sign-in redirects.src/app/sbx/new/route.tscreateClient,auth.getUser) andgetSessionInsecure; redirects toAUTH_URLS.SIGN_INwithreturnToif unauthenticated.getDefaultTeamand creates E2B sandbox viaSandbox.create('base', { domain: env, headers: SUPABASE_AUTH_HEADERS(token, teamId) }).PROTECTED_URLS.SANDBOX_INSPECT(teamSlug, sandboxId)on success.l.warnwithserializeError) and redirects to request origin.Written by Cursor Bugbot for commit d322ab9. This will update automatically on new commits. Configure here.