fix: code

This commit is contained in:
Alex Yang
2026-01-20 13:00:19 -08:00
parent e0f8d6fed6
commit cc8fb8f43c
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
import { DatabaseSync } from "node:sqlite";
import { betterAuth } from "better-auth";
import { getMigrations } from "better-auth/db/migration";
import { DatabaseSync } from "node:sqlite";
const database = new DatabaseSync(":memory:");
const baseURL = process.env.BASE_URL || "http://localhost:3000";

View File

@@ -1,8 +1,8 @@
import { createServer } from "node:http";
import { DatabaseSync } from "node:sqlite";
import { betterAuth } from "better-auth";
import { getMigrations } from "better-auth/db/migration";
import { toNodeHandler } from "better-auth/node";
import { DatabaseSync } from "node:sqlite";
export async function createAuthServer(
baseURL: string = "http://localhost:3000",