mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-15 20:17:22 +00:00
feat(sveltekit): use createRuntimeApp for built-in Admin UI
This commit is contained in:
@@ -1,10 +1,15 @@
|
||||
import { type FrameworkBkndConfig, createFrameworkApp } from "bknd/adapter";
|
||||
import { type FrameworkBkndConfig, createRuntimeApp } from "bknd/adapter";
|
||||
|
||||
type TSvelteKit = {
|
||||
request: Request;
|
||||
};
|
||||
|
||||
export type SvelteKitBkndConfig<Env> = FrameworkBkndConfig<Env>;
|
||||
export type SvelteKitBkndConfig<Env> = FrameworkBkndConfig<Env> & {
|
||||
adminOptions?: {
|
||||
adminBasepath?: string;
|
||||
assetsPath?: string;
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Get bknd app instance
|
||||
@@ -15,7 +20,7 @@ export async function getApp<Env>(
|
||||
config: SvelteKitBkndConfig<Env> = {} as SvelteKitBkndConfig<Env>,
|
||||
args: Env,
|
||||
) {
|
||||
return await createFrameworkApp(config, args);
|
||||
return await createRuntimeApp(config, args);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user