Looking to utilize vite-node for executing database migrations housed in $lib/server/migrate.ts
.
Encountering an error when attempting to run
npx vite-node src/lib/server/migrate
:
Error: Cannot import $lib/server/migrate.ts into client-side code
This script should only be executed on the server. Any suggestions on how to make this work?