bknd is dead long live userbase
Run Tests / test (pull_request) Successful in 4m57s

This commit is contained in:
2026-09-27 19:34:06 +05:30
parent 05e0086fcd
commit 0bfcb5ad71
529 changed files with 2385 additions and 2924 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import { serve } from "bknd/adapter/nuxt";
import config from "../../bknd.config";
import { serve } from "userbase/adapter/nuxt";
import config from "../../userbase.config";
export default defineEventHandler(async (event) => {
const pathname = event.path
+4 -4
View File
@@ -1,15 +1,15 @@
import { type NuxtBkndConfig, getApp as getNuxtApp } from "bknd/adapter/nuxt";
import bkndConfig from "../../bknd.config";
import { type NuxtUserbaseConfig, getApp as getNuxtApp } from "userbase/adapter/nuxt";
import userbaseConfig from "../../userbase.config";
export async function getApp<Env = NodeJS.ProcessEnv>(
config: NuxtBkndConfig<Env>,
config: NuxtUserbaseConfig<Env>,
args: Env = process.env as Env,
) {
return await getNuxtApp(config, args);
}
export async function getApi({ headers, verify }: { verify?: boolean; headers?: Headers }) {
const app = await getApp(bkndConfig, process.env);
const app = await getApp(userbaseConfig, process.env);
if (verify) {
const api = app.getApi({ headers });