We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcd03f3 commit 89ed3a2Copy full SHA for 89ed3a2
apps/cli/src/helpers/core/api-setup.ts
@@ -260,6 +260,16 @@ export async function setupApi(config: ProjectConfig) {
260
}
261
262
263
+ if (
264
+ config.auth === "better-auth" &&
265
+ (backend === "express" || backend === "fastify")
266
+ ) {
267
+ await addPackageDependency({
268
+ dependencies: ["better-auth"],
269
+ projectDir: apiPackageDir,
270
+ });
271
+ }
272
+
273
if (webDirExists && apiDeps.web) {
274
await addPackageDependency({
275
dependencies: apiDeps.web.dependencies as AvailableDependencies[],
0 commit comments