Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How to automatically run migration on NextJS start - Drizzle Team
DT
Drizzle Team
•
16mo 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,879
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
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