Skip to content

Commit fb5764f

Browse files
committed
Use updateSiteConfig
1 parent 44ef863 commit fb5764f

3 files changed

Lines changed: 13 additions & 20 deletions

File tree

nuxt.config.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
import { nodePolyfills } from "vite-plugin-node-polyfills"
22
import wasm from "vite-plugin-wasm"
33
import topLevelAwait from "vite-plugin-top-level-await"
4+
import { updateSiteConfig } from "nuxt-site-config/kit"
45

56
import path from "path"
67

78
export default defineNuxtConfig({
8-
modules: ["@pinia/nuxt", "nuxt-og-image", "@nuxtjs/sitemap"],
9+
modules: ["nuxt-site-config", "@pinia/nuxt", "nuxt-og-image", "@nuxtjs/sitemap"],
910

1011
// site: {
1112
// url: [process.env.CF_PAGES_URL, "https://celenium.io"],
1213
// },
1314

1415
hooks: {
15-
"site-config:resolve": (siteConfig) => {
16-
siteConfig.url = process.env.CF_PAGES_URL ?? "https://celenium.io"
16+
"site-config:resolve": () => {
17+
updateSiteConfig({
18+
url: process.env.CF_PAGES_URL ?? "https://celenium.io",
19+
})
1720
},
1821
},
1922

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"lean-qr": "^2.3.2",
4646
"long": "^5.2.3",
4747
"luxon": "3.4.3",
48+
"nuxt-site-config": "^3.1.9",
4849
"pinia": "3.0.2",
4950
"protobufjs": "^7.2.6",
5051
"qrcode": "^1.5.3",

pnpm-lock.yaml

Lines changed: 6 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)