diff --git a/app/package.json b/app/package.json index c256cc9..e7b522b 100644 --- a/app/package.json +++ b/app/package.json @@ -3,7 +3,7 @@ "type": "module", "sideEffects": false, "bin": "./dist/cli/index.js", - "version": "0.18.1", + "version": "0.19.0-rc.1", "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", "repository": { diff --git a/app/src/App.ts b/app/src/App.ts index b8cbde7..ed6d765 100644 --- a/app/src/App.ts +++ b/app/src/App.ts @@ -245,9 +245,8 @@ export class App< get fetch(): Hono["fetch"] { if (!this.isBuilt()) { - throw new Error("App is not built yet, run build() first"); + console.error("App is not built yet, run build() first"); } - return this.server.fetch as any; } diff --git a/app/src/data/api/DataController.ts b/app/src/data/api/DataController.ts index afdab4b..315a58d 100644 --- a/app/src/data/api/DataController.ts +++ b/app/src/data/api/DataController.ts @@ -161,7 +161,9 @@ export class DataController extends Controller { hono.get( "/types", - permission(DataPermissions.entityRead), + permission(SystemPermissions.schemaRead, { + context: (c) => ({ module: "data" }), + }), describeRoute({ summary: "Retrieve data typescript definitions", tags: ["data"],