Skip to content

Commit

Permalink
fix: use env for site url
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Feb 2, 2023
1 parent b0265f3 commit c283a0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default defineNuxtModule<ModuleOptions>({
return {
// when we run `nuxi generate` we need to force prerendering
forcePrerender: !nuxt.options.dev && nuxt.options._generate,
host: nuxt.options.runtimeConfig.public?.siteUrl,
host: process.env.NUXT_PUBLIC_SITE_URL || nuxt.options.runtimeConfig.public?.siteUrl,
defaults: {
component: 'OgImageBasic',
width: 1200,
Expand Down

0 comments on commit c283a0b

Please sign in to comment.