Skip to content

Commit ebc88b2

Browse files
committed
docs: add postgres database
1 parent 4ebe301 commit ebc88b2

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

docs/content/1.getting-started/5.migration.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ Here is the list breaking changes in Content v3:
1919
- Document driven mode is fully dropped, meaning:
2020
- Markdown files will not convert to Nuxt pages automatically, you need to create pages, see [how](/components/content-renderer#example)
2121
- `useContent()`{lang=ts} composable is removed
22-
- `useContentHead()`{lang=ts} composable is removed
2322
- We simplified rendering components.
2423
- `<ContentDoc>`, `<ContentList>`, `<ContentNavigation>` and `<ContentQuery>` components are dropped in v3.
2524
- `_dir.yml` files are renamed to `.navigation.yml`

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,17 @@ export default defineNuxtConfig({
4444
```
4545

4646

47+
### `Postgres`
48+
49+
If you plan to deploy your application using PostgreSql database you need to use `postgres` database adapter.
50+
```ts [nuxt.config.ts]
51+
export default defineNuxtConfig({
52+
content: {
53+
database: { type: 'postgres', url: 'POSTGRES_URL' /* Other options for `pg` */ }
54+
}
55+
})
56+
```
57+
4758
## `build`
4859

4960
Nuxt Content read and parse all the available contents at built time. This option let you control over parsing contents.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
title: How To Use
1+
title: How To Use
2+
icon: i-ph-lightbulb

0 commit comments

Comments
 (0)