Skip to content

Commit f97ea70

Browse files
committed
docs: document sqliteConnector
1 parent 55e34ad commit f97ea70

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

docs/content/docs/1.getting-started/3.configuration.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,23 @@ preview: {
496496

497497
Experimental features that are not yet stable.
498498

499-
### `experimental.nativeSqlite`
499+
### `experimental.sqliteConnector`
500+
501+
SQLite connectors have limitations in different environments. Some work in serverless environments, while others do not. Nuxt Content supports three different SQLite connectors to cover all environments:
502+
503+
- `better-sqlite3`: Works in all Node environments, GitHub CI, Vercel CI and production, Cloudflare CI pipelines, etc. (Does **not** work in WebContainers and StackBlitz)
504+
- `sqlite3`: Works in Node environments, GitHub CI, and StackBlitz. (Does **not** work in Vercel or Cloudflare)
505+
- `native`: As of Node.js v22.5.0, the `node:sqlite` module is available natively in Node.js. This connector works in all Node environments with Node.js version 22.5.0 or newer.
506+
507+
```ts [nuxt.config.ts]
508+
export default defineNuxtConfig({
509+
content: {
510+
experimental: { sqliteConnector: 'native' },
511+
},
512+
});
513+
```
514+
515+
### `experimental.nativeSqlite` (deprecated, use `sqliteConnector`)
500516

501517
As of Node.js v22.5.0, the `node:sqlite` module is available natively in Node.js.
502518
This allows Nuxt Content to use SQLite as a database without the need for an external package.

0 commit comments

Comments
 (0)