> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tuturuuu.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Inventory on Start + Void

> Inventory Worker identity, acceptance commands, smoke checks and Vercel rollback packet.

Inventory (`apps/inventory`) runs on TanStack Start, Vite+ and Void with the
shared Start bridge. Its native Worker owns `inventory.tuturuuu.com`; the source
configuration declares no routes and the release operator attaches the host.
Production publication remains held until exact-head CI, sealed emitted-Worker
acceptance, staging acceptance and rollback capture pass. Vercel remains
available as the rollback target through cutover.

## Cutover packet

| Item | Value |
| - | - |
| Production Worker | `tuturuuu-inventory` (`VITE_INVENTORY_NATIVE_PROFILE=production`) |
| Staging Worker | the staging Worker name |
| Host | `inventory.tuturuuu.com` (operator-attached; no source route) |
| Bindings and vars | `ASSETS` (`dist/client`), `TUTURUUU_NOINDEX` (`0` production, `1` staging) |
| Secret names | `CRON_SECRET`, `SEPAY_OAUTH_CLIENT_ID`, `SEPAY_OAUTH_CLIENT_SECRET`, `SEPAY_OAUTH_STATE_SECRET`, `SEPAY_OAUTH_TOKEN_ENCRYPTION_SECRET`, `ENCRYPTION_MASTER_KEY`, `UPSTASH_REDIS_REST_URL`, `UPSTASH_REDIS_REST_TOKEN`, `TUTURUUU_APP_COORDINATION_SECRET`, `SUPABASE_SECRET_KEY`, `NEXT_PUBLIC_SUPABASE_URL`, `NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY`, and one of `SEPAY_WEBHOOK_API_KEY` or `SEPAY_WEBHOOK_SECRET` |
| Build | `VITE_INVENTORY_NATIVE_PROFILE=production bun run --cwd apps/inventory build:cloudflare` |
| Prior Vercel deployment | No immutable deployment ID is recorded in the repository. Rex must capture the active Inventory Vercel deployment ID and URL before cutover. |
| Data | No database writes or migrations are part of this cutover. |

## Acceptance and smoke

Run the production build and emitted suite from the repository root:

```bash theme={null}
VITE_INVENTORY_NATIVE_PROFILE=production bun run --cwd apps/inventory build:cloudflare
CI=true CI_SOURCE_SHA="$(git rev-parse HEAD)" bun run --cwd apps/inventory test:runtime
```

After the release owner deploys the accepted artifact and attaches the host:

```bash theme={null}
curl -sS -D - -o /dev/null https://inventory.tuturuuu.com/
curl -sS https://inventory.tuturuuu.com/api/build-info
curl -sS -o /dev/null -w '%{http_code}\n' https://inventory.tuturuuu.com/api/build-info
```

Confirm expected page/auth behavior, the exact accepted source SHA in build
info, and `x-tuturuuu-runtime: native`. Smoke the canonical subdomain and the
`https://tuturuuu.com/inventory` mount if it is admitted by the cutover. This
packet does not authorize routing or provider changes.

## Rollback

Before switching, Rex records the active Vercel deployment ID, immutable URL,
and routing it serves. If smoke, authentication, error rate or latency regresses,
restore the captured host routing to that Vercel deployment in one step; do not
rebuild during rollback. Retain the Vercel deployment and routing until the
native Worker completes its stable release window.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.