the universal sandbox runtime for agents and humans. pocketenv.io
sandbox openclaw agent claude-code vercel-sandbox deno-sandbox cloudflare-sandbox atproto sprites daytona
7
fork

Configure Feed

Select the types of activity you want to include in your feed.

Redirect authenticated users to sandbox on claim

+5 -1
+5 -1
apps/web/src/pages/sandbox/Sandbox.tsx
··· 1 1 import { useState } from "react"; 2 2 import Navbar from "../../components/navbar"; 3 3 import SignIn from "../../components/signin/Signin"; 4 - import { useLocation } from "@tanstack/react-router"; 4 + import { useLocation, useNavigate } from "@tanstack/react-router"; 5 5 6 6 function New() { 7 7 const isAuthenticated = !!localStorage.getItem("token"); 8 8 const [signInModalOpen, setSignInModalOpen] = useState(false); 9 + const navigate = useNavigate(); 9 10 const onClaim = () => { 10 11 if (isAuthenticated) { 12 + navigate({ 13 + to: "/did:plc:pyzvvyrh6eudle55nhqe62tv/sandbox/3mezx5ymmjs26", 14 + }); 11 15 return; 12 16 } 13 17 setSignInModalOpen(true);