Files
bknd/examples/nextjs
dswbx 4c11789ea8 Fix Release 0.11.1 (#150)
* fix strategy forms handling, add register route and hidden fields

Refactored strategy forms to include hidden fields for type and name. Added a registration route with necessary adjustments to the admin controller and routes. Corrected field handling within relevant forms and components.

* fix admin access permissions and refactor routing structure

display a fixed error for unmet permissions when retrieving the schema. moved auth routes outside of BkndProvider and reorganized remaining routes to include BkndWrapper.

* fix: properly type BkndWrapper

* bump fix release version

* ModuleManager: update diff checking and AppData validation

Revised diff handling includes validation of diffs, reverting changes on failure, and enforcing module constraints with onBeforeUpdate hooks. Introduced `validateDiffs` and backup of stable configs. Applied changes in related modules, tests, and UI layer to align with updated diff logic.

* fix: cli: running from config file were using invalid args

* fix: cli: improve sequence of onBuilt trigger to allow custom routes from cli

* fix e2e tests
2025-04-20 09:29:58 +02:00
..
2025-04-20 09:29:58 +02:00
2025-03-14 15:32:43 +01:00
2025-03-05 09:37:23 +01:00

bknd starter: Next.js

A minimal Next.js (app router) project with bknd integration.

Project Structure

Inside of your Next.js project, you'll see the following folders and files:

/
├── ...
├── public
├── src
│   ├── app
│   │   ├── (main)
│   │   │   └── ...
│   │   ├── admin
│   │   │   └── [[...admin]]
│   │   │       └── page.tsx
│   │   ├── api
│   │   │   └── [[...bknd]]
│   │   │       └── route.ts
│   │   └── ...
│   └── bknd.ts
└── package.json

Here is a quick overview about how to adjust the behavior of bknd:

  • Initialization of the bknd config with helper functions are located at src/bknd.ts
  • API routes are exposed at src/api/[[...bknd]]/route.ts
  • Admin UI is rendered at src/admin/[[...admin]]/page.tsx

Commands

All commands are run from the root of the project, from a terminal:

Command Action
npm install Installs dependencies
npm run dev Starts local dev server at localhost:3000
npm run dev:turbo Starts a local turso dev server
npm run build Build your production site

Want to learn more?

Feel free to check our documentation or jump into our Discord server.