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?
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?
