mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
fix admin's assetPath for remote static assets
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import type { Connection } from "bknd/data";
|
||||
import { bunSqlite } from "../bun/connection/BunSqliteConnection";
|
||||
|
||||
export function sqlite(config: { url: string }): Connection {
|
||||
export function sqlite(config?: { url: string }): Connection {
|
||||
return bunSqlite(config);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { Connection } from "bknd/data";
|
||||
import { nodeSqlite } from "../node/connection/NodeSqliteConnection";
|
||||
|
||||
export function sqlite(config: { url: string }): Connection {
|
||||
export function sqlite(config?: { url: string }): Connection {
|
||||
return nodeSqlite(config);
|
||||
}
|
||||
|
||||
@@ -195,7 +195,7 @@ export class AdminController extends Controller {
|
||||
if (isProd) {
|
||||
let manifest: any;
|
||||
if (this.options.assetsPath.startsWith("http")) {
|
||||
manifest = await fetch(this.options.assetsPath + "manifest.json", {
|
||||
manifest = await fetch(this.options.assetsPath + ".vite/manifest.json", {
|
||||
headers: {
|
||||
Accept: "application/json",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user