From ebc88b20cddc6f1dd2dc5b076a739b4ad98d5d19 Mon Sep 17 00:00:00 2001 From: Farnabaz Date: Tue, 5 Nov 2024 19:36:57 +0100 Subject: [PATCH] docs: add postgres database --- docs/content/1.getting-started/5.migration.md | 1 - docs/content/1.getting-started/6.configuration.md | 11 +++++++++++ docs/content/2.usage/.navigation.yml | 3 ++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/docs/content/1.getting-started/5.migration.md b/docs/content/1.getting-started/5.migration.md index aaec3331a..b90370715 100644 --- a/docs/content/1.getting-started/5.migration.md +++ b/docs/content/1.getting-started/5.migration.md @@ -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. - ``, ``, `` and `` components are dropped in v3. - `_dir.yml` files are renamed to `.navigation.yml` diff --git a/docs/content/1.getting-started/6.configuration.md b/docs/content/1.getting-started/6.configuration.md index 7e012b56c..21048b38c 100644 --- a/docs/content/1.getting-started/6.configuration.md +++ b/docs/content/1.getting-started/6.configuration.md @@ -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. diff --git a/docs/content/2.usage/.navigation.yml b/docs/content/2.usage/.navigation.yml index 6b32e87e9..1c2c8d411 100644 --- a/docs/content/2.usage/.navigation.yml +++ b/docs/content/2.usage/.navigation.yml @@ -1 +1,2 @@ -title: How To Use \ No newline at end of file +title: How To Use +icon: i-ph-lightbulb \ No newline at end of file