mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-15 20:17:22 +00:00
fix admin's assetPath for remote static assets
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"bin": "./dist/cli/index.js",
|
"bin": "./dist/cli/index.js",
|
||||||
"version": "0.15.0-rc.8",
|
"version": "0.15.0-rc.10",
|
||||||
"description": "Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.",
|
"description": "Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.",
|
||||||
"homepage": "https://bknd.io",
|
"homepage": "https://bknd.io",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { Connection } from "bknd/data";
|
import type { Connection } from "bknd/data";
|
||||||
import { bunSqlite } from "../bun/connection/BunSqliteConnection";
|
import { bunSqlite } from "../bun/connection/BunSqliteConnection";
|
||||||
|
|
||||||
export function sqlite(config: { url: string }): Connection {
|
export function sqlite(config?: { url: string }): Connection {
|
||||||
return bunSqlite(config);
|
return bunSqlite(config);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { Connection } from "bknd/data";
|
import type { Connection } from "bknd/data";
|
||||||
import { nodeSqlite } from "../node/connection/NodeSqliteConnection";
|
import { nodeSqlite } from "../node/connection/NodeSqliteConnection";
|
||||||
|
|
||||||
export function sqlite(config: { url: string }): Connection {
|
export function sqlite(config?: { url: string }): Connection {
|
||||||
return nodeSqlite(config);
|
return nodeSqlite(config);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -195,7 +195,7 @@ export class AdminController extends Controller {
|
|||||||
if (isProd) {
|
if (isProd) {
|
||||||
let manifest: any;
|
let manifest: any;
|
||||||
if (this.options.assetsPath.startsWith("http")) {
|
if (this.options.assetsPath.startsWith("http")) {
|
||||||
manifest = await fetch(this.options.assetsPath + "manifest.json", {
|
manifest = await fetch(this.options.assetsPath + ".vite/manifest.json", {
|
||||||
headers: {
|
headers: {
|
||||||
Accept: "application/json",
|
Accept: "application/json",
|
||||||
},
|
},
|
||||||
|
|||||||
2
bun.lock
2
bun.lock
@@ -15,7 +15,7 @@
|
|||||||
},
|
},
|
||||||
"app": {
|
"app": {
|
||||||
"name": "bknd",
|
"name": "bknd",
|
||||||
"version": "0.15.0-rc.8",
|
"version": "0.15.0-rc.9",
|
||||||
"bin": "./dist/cli/index.js",
|
"bin": "./dist/cli/index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@cfworker/json-schema": "^4.1.1",
|
"@cfworker/json-schema": "^4.1.1",
|
||||||
|
|||||||
Reference in New Issue
Block a user