© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
How to automatically run migration on NextJS start - Drizzle Team
DT
Drizzle Team
•
2y ago
•
4 replies
Eco 🌤
How to automatically run migration on NextJS start
The docs is not clear on how to do it
. It still uses
npx tsx src/index.ts
npx tsx src/index.ts
which is a CLI command instead of runtime
.
Drizzle Team
Join
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,959
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
How to run migration script?
DT
Drizzle Team / help
3y ago
Unable to run migration pgenum
DT
Drizzle Team / help
2y ago
Trouble getting drizzle to run on server side in nextjs
DT
Drizzle Team / help
3y ago