Skip to content

Commit

Permalink
docs: add postgres database
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Nov 5, 2024
1 parent 4ebe301 commit ebc88b2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
1 change: 0 additions & 1 deletion docs/content/1.getting-started/5.migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ Here is the list breaking changes in Content v3:
- Document driven mode is fully dropped, meaning:
- Markdown files will not convert to Nuxt pages automatically, you need to create pages, see [how](/components/content-renderer#example)
- `useContent()`{lang=ts} composable is removed
- `useContentHead()`{lang=ts} composable is removed
- We simplified rendering components.
- `<ContentDoc>`, `<ContentList>`, `<ContentNavigation>` and `<ContentQuery>` components are dropped in v3.
- `_dir.yml` files are renamed to `.navigation.yml`
Expand Down
11 changes: 11 additions & 0 deletions docs/content/1.getting-started/6.configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,17 @@ export default defineNuxtConfig({
```


### `Postgres`

If you plan to deploy your application using PostgreSql database you need to use `postgres` database adapter.
```ts [nuxt.config.ts]
export default defineNuxtConfig({
content: {
database: { type: 'postgres', url: 'POSTGRES_URL' /* Other options for `pg` */ }
}
})
```

## `build`

Nuxt Content read and parse all the available contents at built time. This option let you control over parsing contents.
Expand Down
3 changes: 2 additions & 1 deletion docs/content/2.usage/.navigation.yml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
title: How To Use
title: How To Use
icon: i-ph-lightbulb

0 comments on commit ebc88b2

Please sign in to comment.