feat(FN-094): add comment line for deployment verification
Some checks failed
Sync dev → Gitea / Mirror dev to Gitea (push) Has been cancelled

- Added a comment line to main.ts for deployment verification purposes
This commit is contained in:
Fusion
2026-05-11 02:07:03 +00:00
parent c72f063a25
commit f4fea1e429
274 changed files with 20712 additions and 6305 deletions

View File

@@ -1,11 +1,11 @@
import { randomUUID } from "node:crypto";
import { generateReferralCode } from "@sase/shared";
import { betterAuth } from "better-auth";
import { drizzleAdapter } from "better-auth/adapters/drizzle";
import { drizzle } from "drizzle-orm/postgres-js";
import postgres from "postgres";
import { randomUUID } from "crypto";
import * as schema from "../database/schema/core";
import type { EmailService } from "../email/email.service";
import { generateReferralCode } from "@sase/shared";
import { EmailService } from "../email/email.service";
let authInstance: ReturnType<typeof betterAuth> | null = null;
@@ -19,7 +19,12 @@ interface AuthOptions {
emailService?: EmailService;
}
export function createAuth(databaseUrl: string, secret: string, baseUrl: string, options?: AuthOptions) {
export function createAuth(
databaseUrl: string,
secret: string,
baseUrl: string,
options?: AuthOptions,
) {
if (authInstance) return authInstance;
const client = postgres(databaseUrl, { max: 5 });