© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•2y ago•
22 replies
x03

How do I apply migrations on cloudflare workers?

I have a sveltekit cloudflare pages project, and everything works fine until I try to apply migrations.

I use the postgres-js adapter.

The issue is that certain node libraries cannot be used with cloudflare workers, and the postgres-js migrator seems to include node:fs, which is not supported. (image attached below of the build error)

Is there any alternative way to apply migrations that work on cloudflare workers?
image.png
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Automatically apply migrations on serverless deploy
Drizzle TeamDTDrizzle Team / help
3y ago
How should I do custom migrations?
Drizzle TeamDTDrizzle Team / help
2y ago
How to apply migrations on postgres in a serverless enviroment?
Drizzle TeamDTDrizzle Team / help
3y ago
How do you deal with migrations? on postbuild?
Drizzle TeamDTDrizzle Team / help
2y ago