NuxtN
Nuxt15mo ago
6 replies
Titan

How to define external packages in build

Postgres is used for local db during dev, and neon on cloudflare. The cloudflare preset build will fail if I try import postgres, so how do I mark it as an external dependancy in my nuxt/nitro/vite/rollup build so it isn't bundled? I'm already using an inline import statement to support this at runtime.
Was this page helpful?