mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-27 17:36:42 -05:00
feat(cli): add support for auth.server.ts (#1456)
This commit is contained in:
@@ -10,7 +10,14 @@ import fs from "fs";
|
||||
import { BetterAuthError } from "better-auth";
|
||||
import { addSvelteKitEnvModules } from "./add-svelte-kit-env-modules";
|
||||
|
||||
let possiblePaths = ["auth.ts", "auth.tsx", "auth.js", "auth.jsx"];
|
||||
let possiblePaths = [
|
||||
"auth.ts",
|
||||
"auth.tsx",
|
||||
"auth.js",
|
||||
"auth.jsx",
|
||||
"auth.server.js",
|
||||
"auth.server.ts",
|
||||
];
|
||||
|
||||
possiblePaths = [
|
||||
...possiblePaths,
|
||||
|
||||
Reference in New Issue
Block a user