Deploy to staging environment.
Copy auth0 config from apps/auth0-tenant/auth0-config.json.example to apps/auth0-tenant/auth0-config-staging.json and fill out details using Machine to Machine client.
Deploy staging Auth0 configuration.
pnpm nx deploy-staging auth0-tenantCreate users in Auth0 dashboard.
- Assign permissions to users for the Mold Inventory API.
- Available permissions:
create:molds,read:molds,update:molds, anddelete:molds
- Available permissions:
Define secrets for MoldInventoryPostUserRegistration action.
DOMAIN- Auth0 domainCLIENT_ID- Molds M2M Client IDCLIENT_SECRET- Molds M2M Client Secret
Staging Auth0 tenant can be used as another testing environment.
pnpm nx staging mold-inventory-apiRun locally in Node.js using the Next.js development server, with hot-code reloading, error reporting, and more.
pnpm nx dev:staging mold-inventory-appRun locally in the Cloudflare workerd runtime, which is more accurate to production.
pnpm nx preview:staging mold-inventory-apppnpm nx staging molds-mcp