Skip to content

Commit

Permalink
feat: add Hub database in the devtools (nuxt-hub#29)
Browse files Browse the repository at this point in the history
* feat: add Hub database in the devtools

* docs: add devtools
  • Loading branch information
atinux authored Mar 24, 2024
1 parent 18ade4b commit 6c5eb1f
Show file tree
Hide file tree
Showing 7 changed files with 95 additions and 130 deletions.
8 changes: 8 additions & 0 deletions docs/content/docs/2.storage/1.database.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,3 +214,11 @@ The methods [`.all()`](#all) and [`.batch()`](#batch) return an object that cont
::callout
Read more on [Cloudflare D1 documentation](https://developers.cloudflare.com/d1/build-databases/query-databases/).
::

## Nuxt Devtools

You can use the Nuxt Devtools to inspect the database and run queries, powered by [Drizzle Studio](https://orm.drizzle.team/drizzle-studio/overview).

Open the Nuxt Devtools and navigate to the Hub Database.

![Nuxt Devtools - Hub Database](/nuxthub-devtools-database.png){.rounded}
Binary file added docs/public/nuxthub-devtools-database.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
},
"dependencies": {
"@cloudflare/workers-types": "^4.20240320.1",
"@nuxt/devtools-kit": "^1.1.3",
"@nuxt/kit": "^3.11.1",
"@sindresorhus/slugify": "^2.2.1",
"@uploadthing/mime-types": "^0.2.6",
Expand Down
Loading

0 comments on commit 6c5eb1f

Please sign in to comment.