@dargmuesli/nuxt-vio 3.5.0 → 3.5.1

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.
@@ -2,7 +2,8 @@ export const useAppLayout = () => {
2
2
  const appConfig = useAppConfig()
3
3
  const siteConfig = useSiteConfig()
4
4
 
5
- useServerHeadSafe({
5
+ // TODO: replace with `useServerHeadSafe`
6
+ useHeadSafe({
6
7
  ...useLocaleHead({ addSeoAttributes: true }).value,
7
8
  bodyAttrs: {
8
9
  class:
@@ -11,7 +12,7 @@ export const useAppLayout = () => {
11
12
  })
12
13
 
13
14
  // TODO: convert to `useServerHeadSafe` (https://github.com/harlan-zw/nuxt-seo-kit/issues/98)
14
- useServerSeoMeta({
15
+ useSeoMeta({
15
16
  titleTemplate: (title) =>
16
17
  title && title !== siteConfig.name
17
18
  ? `${title} ${siteConfig.titleSeparator} ${siteConfig.name}`
@@ -19,11 +20,13 @@ export const useAppLayout = () => {
19
20
  })
20
21
 
21
22
  if (appConfig.vio.seoMeta) {
22
- useServerSeoMeta(appConfig.vio.seoMeta)
23
+ // TODO: replace with `useServerSeoMeta`
24
+ useSeoMeta(appConfig.vio.seoMeta)
23
25
  }
24
26
 
25
27
  if (appConfig.vio.themeColor) {
26
- useServerSeoMeta({
28
+ // TODO: replace with `useServerSeoMeta`
29
+ useSeoMeta({
27
30
  msapplicationTileColor: appConfig.vio.themeColor,
28
31
  themeColor: appConfig.vio.themeColor,
29
32
  })
@@ -1,7 +1,8 @@
1
1
  export const useFavicons = () => {
2
2
  const appConfig = useAppConfig()
3
3
 
4
- useServerHeadSafe({
4
+ // TODO: replace with `useServerHeadSafe`
5
+ useHeadSafe({
5
6
  link: [
6
7
  {
7
8
  href: `/assets/static/favicon/site.webmanifest?v=${CACHE_VERSION}`,
@@ -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: replace with `useServerSeoMeta`
21
21
  }
@@ -5,7 +5,8 @@ export const usePolyfills = () => {
5
5
  '%2C',
6
6
  )}&flags=gated`
7
7
 
8
- useServerHead({
8
+ // TODO: replace with `useServerHead`
9
+ useHead({
9
10
  link: [
10
11
  {
11
12
  rel: 'preload',
package/error.vue CHANGED
@@ -20,7 +20,9 @@ const errorProp = toRef(() => props.error)
20
20
 
21
21
  // initialization
22
22
  useAppLayout()
23
- useServerHeadSafe({
23
+
24
+ // TODO: replace with `useServerHeadSafe`
25
+ useHeadSafe({
24
26
  title: `${errorProp.value.statusCode} - ${errorProp.value.message}`,
25
27
  })
26
28
  </script>
package/nuxt.config.ts CHANGED
@@ -6,6 +6,7 @@ import { defu } from 'defu'
6
6
  import {
7
7
  BASE_URL,
8
8
  I18N_COOKIE_NAME,
9
+ I18N_MODULE_CONFIG,
9
10
  SITE_NAME,
10
11
  TIMEZONE_COOKIE_NAME,
11
12
  VIO_NUXT_BASE_CONFIG,
@@ -160,7 +161,10 @@ export default defineNuxtConfig(
160
161
  titleSeparator: '·',
161
162
  },
162
163
  sitemap: {
163
- exclude: ['/api/pages/**'],
164
+ exclude: I18N_MODULE_CONFIG.locales.map(
165
+ (locale) =>
166
+ `/${locale.code !== 'en' ? `${locale.code}/` : ''}api/pages/**`,
167
+ ),
164
168
  },
165
169
  tailwindcss: {
166
170
  cssPath: join(currentDir, './assets/css/tailwind.css'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-vio",
3
- "version": "3.5.0",
3
+ "version": "3.5.1",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"