The admin panel lives at /admin. Only the emails in ADMIN_EMAIL can open it, and every admin action checks this on the server.
Screens
| Screen | URL | What you can do |
|---|---|---|
| Dashboard | /admin |
Revenue, orders, customers and recent orders |
| Orders | /admin/orders |
Change order and payment status, delete one or many |
| Users | /admin/users |
List Clerk users, export CSV, delete one or many |
| Subscriptions | /admin/subscriptions |
List and delete newsletter subscribers |
The admin menu also links to the Sanity Studio for editing products and content.
Get access
- Put your email in
ADMIN_EMAIL(comma-separate several emails). - Sign up or sign in with that email. It must be the account’s primary email.
- Open http://localhost:3000/admin.
Note
If /admin sends you to the home page, your primary email isn’t in ADMIN_EMAIL, or you changed .env without restarting pnpm dev.
Order statuses
| Order status | Payment status |
|---|---|
pending, confirmed, packed, delivering, delivered, complete |
pending, paid, cancelled |
The Stripe webhook sets the payment status to paid automatically. You move the order status forward as you ship.