Files
route-commerce/db
tyler a8a3f5d2e3
Deploy to route.crispygoat.com / deploy (push) Has been cancelled
fix(seed): inline scrypt hash so seed.ts runs outside Next.js server context
The seed script previously imported hashPassword from src/lib/passwords.ts,
which has 'import "server-only"' at the top. That guard throws when the
file is loaded outside a Next.js server runtime (which is what 'tsx db/seed.ts'
is — plain Node). Inline the same scrypt format (matches verifyPassword)
so the seed runs from a CLI.
2026-06-07 07:16:30 +00:00
..