Skip to content

Commit

Permalink
fix: read site description from NUXT_PUBLIC_SITE_DESCRIPTION
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Jan 12, 2023
1 parent 069a330 commit 25639e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ It can be useful to change the host name based on which environment you have the
You can do this with an .env file and the following keys.

```env
NUXT_PUBLIC_SITE_URL=https://harlanzw.com/
NUXT_PUBLIC_SITE_URL="https://harlanzw.com/"
NUXT_PUBLIC_SITE_NAME=Harlan Wilton
NUXT_INDEXABLE=true
```
Expand All @@ -212,7 +212,7 @@ export default defineNuxtConfig({
})
```

Alternatively, you can set the `NUXT_INDEXABLE` environment variable.
Alternatively, you can set the `NUXT_INDEXABLE=false` environment variable.

### Using the Breadcrumbs component

Expand Down
2 changes: 1 addition & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default defineNuxtConfig({
titleSeparator: process.env.NUXT_PUBLIC_TITLE_SEPARATOR || '|',
siteName: process.env.NUXT_PUBLIC_SITE_NAME || 'Nuxt Playground',
siteUrl: process.env.NUXT_PUBLIC_SITE_URL || 'http://localhost:3000/',
siteDescription: process.env.NUXT_PUBLIC_SITE_URL || 'My Nuxt v3 website.',
siteDescription: process.env.NUXT_PUBLIC_SITE_DESCRIPTION || 'My Nuxt v3 website.',
language: process.env.NUXT_PUBLIC_LANGUAGE || 'en',
},
},
Expand Down

0 comments on commit 25639e0

Please sign in to comment.