Add necessary DB migration step for localhost instructions
Summary
This PR adds an explicit database migration step to the local setup instructions. This is necessary because without running migration - you will get DB errors without doing so.
Changes
Updates the "Running locally" section of the README to include the database migration step:
- pnpm install
- pnpm dev
+ pnpm install
+ pnpm tsx lib/db/migrate.ts && pnpm run build
+ pnpm dev
Why this is necessary
- On local deployment, the database schema needs to be initialized before authentication can work
- If not, you get authentication failures on first setup (#450, #731)
Testing Done
- [x] Verified fresh setup works with these instructions
- [x] Confirmed authentication works after following updated steps
Closes #450
@b8zhong is attempting to deploy a commit to the Vercel Team on Vercel.
A member of the Team first needs to authorize it.
@jeremyphilemon Sorry to bother you but noticed you were active here; would you mind taking a look? Thanks in advance!
Thank you
@adam-from-meiro Glad you found it helpful :)