@dargmuesli/nuxt-vio 3.0.0-beta.16 → 3.0.0-beta.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -75,7 +75,7 @@ const { t } = useI18n()
75
75
  const title = t('title')
76
76
 
77
77
  // initialization
78
- useServerSeoMeta({ title })
78
+ useHeadDefault({ title })
79
79
  </script>
80
80
 
81
81
  <i18n lang="yaml">
@@ -509,7 +509,7 @@ const { t } = useI18n()
509
509
  const title = t('title')
510
510
 
511
511
  // initialization
512
- useServerSeoMeta({ title })
512
+ useHeadDefault({ title })
513
513
  </script>
514
514
 
515
515
  <i18n lang="yaml">
@@ -17,5 +17,5 @@ export const useHeadDefault = ({
17
17
  twitterTitle: title,
18
18
  }
19
19
 
20
- useServerSeoMeta(defu(extension, defaults))
20
+ useSeoMeta(defu(extension, defaults)) // TODO: use `useServerSeoMeta` when Nuxt 3.7 is used
21
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-vio",
3
- "version": "3.0.0-beta.16",
3
+ "version": "3.0.0-beta.18",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -42,7 +42,7 @@
42
42
  "preview": "nuxt preview .playground"
43
43
  },
44
44
  "dependencies": {
45
- "@dargmuesli/nuxt-cookie-control": "6.4.0",
45
+ "@dargmuesli/nuxt-cookie-control": "6.4.1",
46
46
  "@http-util/status-i18n": "0.8.1",
47
47
  "@nuxt/image": "1.0.0-rc.1",
48
48
  "@nuxtjs/color-mode": "3.3.0",
@@ -50,7 +50,7 @@
50
50
  "@nuxtjs/i18n": "8.0.0-rc.3",
51
51
  "@nuxtjs/tailwindcss": "6.8.0",
52
52
  "@pinia/nuxt": "0.4.11",
53
- "@tailwindcss/forms": "0.5.4",
53
+ "@tailwindcss/forms": "0.5.5",
54
54
  "@tailwindcss/typography": "0.5.9",
55
55
  "@urql/core": "4.1.1",
56
56
  "@urql/devtools": "2.0.3",
@@ -35,9 +35,9 @@ export const VIO_NUXT_BASE_CONFIG = ({
35
35
  siteName,
36
36
  stagingHost,
37
37
  }: {
38
- baseUrl: string
38
+ baseUrl?: string
39
39
  siteName: string
40
- stagingHost: string
40
+ stagingHost?: string
41
41
  }) => ({
42
42
  app: {
43
43
  head: {
@@ -47,14 +47,18 @@ export const VIO_NUXT_BASE_CONFIG = ({
47
47
  runtimeConfig: {
48
48
  public: {
49
49
  i18n: {
50
- baseUrl,
50
+ ...(baseUrl ? { baseUrl } : {}),
51
51
  },
52
52
  vio: {
53
- stagingHost:
54
- process.env.NODE_ENV !== 'production' &&
55
- !process.env.NUXT_PUBLIC_STACK_DOMAIN
56
- ? stagingHost
57
- : undefined,
53
+ ...(stagingHost
54
+ ? {
55
+ stagingHost:
56
+ process.env.NODE_ENV !== 'production' &&
57
+ !process.env.NUXT_PUBLIC_STACK_DOMAIN
58
+ ? stagingHost
59
+ : undefined,
60
+ }
61
+ : {}),
58
62
  },
59
63
  },
60
64
  },
@@ -72,6 +76,6 @@ export const VIO_NUXT_BASE_CONFIG = ({
72
76
  i18n: I18N_MODULE_CONFIG, // `langDir`, `lazy` and `locales` must be configured to extend a layer having lazy-loaded translations (https://v8.i18n.nuxtjs.org/guide/layers#locales)
73
77
  site: {
74
78
  name: siteName,
75
- url: baseUrl,
79
+ ...(baseUrl ? { url: baseUrl } : {}),
76
80
  },
77
81
  })