@@ -327,21 +327,21 @@ export default defineNuxtConfig({
327327
328328### ` Postgres `
329329
330- If you plan to deploy your application using PostgreSQL database you need to use the ` postgres ` database adapter.
330+ If you plan to deploy your application using PostgreSQL database you need to use the ` postgresql ` database adapter.
331331
332332First, make sure to install the ` pg ` package:
333333
334334``` bash [Terminal]
335- npx npm i pg
335+ npm i pg
336336```
337337
338- Then, configure the ` postgres ` adapter in your ` nuxt.config.ts ` :
338+ Then, configure the ` postgresql ` adapter in your ` nuxt.config.ts ` :
339339
340340``` ts [nuxt.config.ts]
341341export default defineNuxtConfig ({
342342 content: {
343343 database: {
344- type: ' postgres ' ,
344+ type: ' postgresql ' ,
345345 url: process .env .POSTGRES_URL ,
346346 /* Other options for `pg` */
347347 }
@@ -356,7 +356,7 @@ If you plan to deploy your application using a LibSQL database you need to use t
356356First, make sure to install the ` @libsql/client ` package:
357357
358358``` bash [Terminal]
359- npx npm i @libsql/client
359+ npm i @libsql/client
360360```
361361
362362Then, configure the ` libsql ` adapter in your ` nuxt.config.ts ` :
@@ -377,6 +377,33 @@ export default defineNuxtConfig({
377377The most popular LibSQL hosting services is [ Turso] ( https://turso.tech/ ) .
378378::
379379
380+ ### ` PGlite `
381+
382+ If you plan to deploy your application using a PGlite database you need to use the ` pglite ` database adapter.
383+
384+ First, make sure to install the ` @electric-sql/pglite ` package:
385+
386+ ``` bash [Terminal]
387+ npm i @electric-sql/pglite
388+ ```
389+
390+ Then, configure the ` pglite ` adapter in your ` nuxt.config.ts ` :
391+
392+ ``` ts [nuxt.config.ts]
393+ export default defineNuxtConfig ({
394+ content: {
395+ database: {
396+ type: ' pglite' ,
397+ dataDir: ' .data/content/pglite'
398+ }
399+ }
400+ })
401+ ```
402+
403+ :: note
404+ We recommend to only use PGlite in development.
405+ ::
406+
380407## ` renderer `
381408
382409Configure content renderer.
0 commit comments