mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-15 20:17:22 +00:00
public commit
This commit is contained in:
25
app/vite.dev.ts
Normal file
25
app/vite.dev.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { createClient } from "@libsql/client/node";
|
||||
import { serveFresh } from "./src/adapter/vite";
|
||||
import { LibsqlConnection } from "./src/data";
|
||||
import { StorageLocalAdapter } from "./src/media/storage/adapters/StorageLocalAdapter";
|
||||
import { registries } from "./src/modules/registries";
|
||||
|
||||
registries.media.add("local", {
|
||||
cls: StorageLocalAdapter,
|
||||
schema: StorageLocalAdapter.prototype.getSchema()
|
||||
});
|
||||
|
||||
const connection = new LibsqlConnection(
|
||||
createClient({
|
||||
url: "file:.db/test.db"
|
||||
})
|
||||
);
|
||||
|
||||
const app = await serveFresh({
|
||||
app: {
|
||||
connection
|
||||
},
|
||||
setAdminHtml: true
|
||||
});
|
||||
|
||||
export default app;
|
||||
Reference in New Issue
Block a user