Skip to content

Commit

Permalink
doc: improve runtimeConfig.siteUrl usage
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Feb 2, 2023
1 parent 2d4b13d commit 3344ec8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default defineNuxtConfig({

#### Requirements

This feature uses Nuxt Islands, which requires Nuxt 3.1.
This feature uses Nuxt Islands, which requires Nuxt >= 3.1.

### Add your host name

Expand All @@ -80,7 +80,7 @@ _nuxt.config.ts_
export default defineNuxtConfig({
// Recommended
runtimeConfig: {
siteUrl: 'https://example.com',
siteUrl: process.env.NUXT_PUBLIC_SITE_URL || 'https://example.com',
},
// OR
ogImage: {
Expand Down

0 comments on commit 3344ec8

Please sign in to comment.