No matching export but builds and runs fine locally
pnpm run build
and pnpm run preview
results in all my routes loading successfully without any errors. I'm not quite sure how to replicate or debug this.1 Reply
The solution to this was to include:
In my
package.json
. Another problem showed up with canceled promises, and turns out you must initialize your DB connection on every request (but you don't need to do this in Vercel).