Skip to content

feat(client): seed preview accounts with db:seed --preview - #424

Closed
alexeh wants to merge 1 commit into
developfrom
feat/seed-preview-users
Closed

alexeh wants to merge 1 commit into
developfrom
feat/seed-preview-users

Conversation

@alexeh

@alexeh alexeh commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@vercel

vercel Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
amazonia-360 Ready Ready Preview Oct 8, 2026 11:05am UTC

Request Review

- Add seed-preview-users.ts. For each preview email it writes one CMS
  admin and one verified frontend user, without a verification email.
  An existing account gets its password reset (and is verified again).
- The password comes from PREVIEW_USERS_PASSWORD. Without it, the seed
  uses 12345678 and logs a warning.
- payload-step.mjs maps --preview to SEED_PREVIEW=true, because payload
  run keeps only positional arguments. SEED_PREVIEW is false otherwise,
  so an env value alone cannot turn it on. Unknown flags fail.
- predeploy.sh passes its arguments to the seed.
@alexeh
alexeh force-pushed the feat/seed-preview-users branch from 0eed010 to 65d7306 Compare October 8, 2026 11:04
@sonarqubecloud

sonarqubecloud Bot commented Oct 8, 2026

Copy link
Copy Markdown

@alexeh alexeh closed this Oct 8, 2026
@railway-app
railway-app Bot temporarily deployed to amazonia-360 / amazonia-360-pr-425 October 8, 2026 11:34 Destroyed
@alexeh
alexeh deleted the feat/seed-preview-users branch October 8, 2026 23:40

This branch was successfully deployed

1 active deployment
amazonia-360 / amazonia-360-pr-425 — 65d7306b Deployed Oct 8, 2026 by railway-app[bot]
Preview — 65d7306b Deployed Oct 8, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant