Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
import { StockLocationsPage, stockLocationsSearchSchema } from '@spree/dashboard-core'
import { createFileRoute } from '@tanstack/react-router'
import type { z } from 'zod/v4'
export const Route = createFileRoute('/_authenticated/$sellerId/settings/stock-locations')({
validateSearch: stockLocationsSearchSchema,
component: StockLocationsRoute,
})
/**
* The same page the operator's dashboard renders, against this seller's own
* locations — the Seller API scopes them, so nothing here has to.
*
* No stock-levels panel: editing on-hand counts reads the Admin API and links
* to the operator's product pages. A seller's stock lives on their products,
* which is where the panel will edit it.
*/
function StockLocationsRoute() {
const search = Route.useSearch() as z.infer<typeof stockLocationsSearchSchema>
return <StockLocationsPage search={search} formKey="seller.stock_location" />
}