diff --git a/nuxt.config.ts b/nuxt.config.ts index 6a09acf..d3ca9d7 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -115,6 +115,19 @@ export default defineNuxtConfig({ // }, // }, // ssr: false, + alias: { + "@models": "./lib/models", + "@client": "./lib/client", + "@server": "./lib/server", + "@models/*": "./models/*", + "@client/*": "./lib/client/*", + "@server/*": "./lib/server/*", + // "@models/**": "./models/**", + // "@client/**": "./lib/client/**", + // "@server/**": "./lib/server/**", + "@functions": "./lib/functions.ts", + "@dbconfig": "./lib/dbconfig.ts", + }, sourcemap: { server: true, client: true, diff --git a/tsconfig.json b/tsconfig.json index cab916c..80ec1b2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,9 +13,9 @@ "@models/*": ["./models/*"], "@client/*": ["./lib/client/*"], "@server/*": ["./lib/server/*"], - "@models/**": ["./models/**"], - "@client/**": ["./lib/client/**"], - "@server/**": ["./lib/server/**"], + // "@models/**": ["./models/**"], + // "@client/**": ["./lib/client/**"], + // "@server/**": ["./lib/server/**"], "@functions": ["./lib/functions.ts"], "@dbconfig": ["./lib/dbconfig.ts"] }