.... Customer-facing Next.js application for SIPP. The current commerce scope is Multi Vendor food delivery, with architecture that can add Single Vendor and independent future service modules without coupling them to delivery internals.
Every developer and coding agent must start with AGENTS.md.
- Product scope
- Architecture and module boundaries
- Data fetching, state, sessions, and errors
- UI, forms, styling, themes, and i18n
- Quality and workflow
The initial feature-first normalization is complete. The architecture document defines the active module boundaries and the required extension points.
Install dependencies, copy the environment template, and point it at the SIPP backend:
Node.js 20.9 or newer is required by Next.js 16.
npm install
cp .env.example .env.localRun the website on a port that does not conflict with the backend:
npm run dev -- --port 3001Open http://localhost:3001. Customer authentication at
/login is proxied through same-origin /api/auth/* route handlers, and the
backend token remains in HTTP-only cookies.
Password recovery stores the backend-issued, one-time opaque reset token in a short-lived HTTP-only cookie. The backend binds and consumes that token through Redis after the forgot-password OTP is verified.
Set the server-only ADMIN_WEB_URL to the Admin Users page URL. The customer
site uses it only as the safe destination for Exit impersonation.
npm run dev -- --port 3001
npm run lint
npm run i18n:audit
npm run i18n:audit:ci
npm run build
npm run startFormatting, unit/component tests, and Playwright remain documented target tooling; their scripts do not exist yet and are not listed as current commands.
Client Components call same-origin /api/* endpoints only. Upstream backend
configuration, access tokens, and session-cookie logic remain in server-only
modules. Read the data-fetching guide before adding an endpoint or query.
Google Analytics source integration is disabled by default. See
activation, consent, GTM ownership and manual acceptance
and the public placeholders in sample.env. The approved CMP, isolated
environments and marketing container configuration must be supplied before
activation. No live analytics account changes or runtime verification were made.
/.well-known/apple-app-site-association and /.well-known/assetlinks.json let the customer app open /restaurants/{storeUUID}[?productId={productUUID}] links. Both return 404 until configured (set at runtime on the host; no rebuild needed):
| Variable | Value |
|---|---|
APPLE_TEAM_ID |
10-character Apple Developer Team ID for bundle com.sipp.delivery.app |
ANDROID_APP_SHA256_FINGERPRINTS |
Comma-separated SHA-256 signing-certificate fingerprints for package com.sipp.delivery.app (Play App Signing key, plus any upload/EAS key used for direct installs) |
The app's associated domain / intent filter host comes from EXPO_PUBLIC_STORE_WEB_BASE_URL in sipp-customer (default https://sipp-delivery.netlify.app); it must be the host serving these files. Changing it requires re-running prebuild and a new native build.