diff --git a/nuxt.config.ts b/nuxt.config.ts index 7304cf9..c0f2c94 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -84,10 +84,10 @@ export default defineNuxtConfig({ esbuild: { options: { minify: true, - sourceMap: "inline", + // sourceMap: "inline", }, }, - preset: "node-server", + preset: process.env.NODE_ENV == "production" ? "bun" : "node-server", }, routeRules: { "/": cac, @@ -161,4 +161,11 @@ export default defineNuxtConfig({ exclude: ["./.nuxt/types/auth.d.ts"], }, }, + imports: { + autoImport: true, + + dirsScanOptions: { + types: true, + }, + }, });