@dargmuesli/nuxt-vio 4.0.3 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
package/nuxt.config.ts CHANGED
@@ -29,9 +29,6 @@ export default defineNuxtConfig(
29
29
  lang: 'en', // fallback data to prevent invalid html at generation
30
30
  },
31
31
  titleTemplate: '%s', // fully set in `composables/useAppLayout.ts`
32
- templateParams: {
33
- separator: '·',
34
- },
35
32
  },
36
33
  pageTransition: {
37
34
  name: 'layout',
@@ -146,6 +143,7 @@ export default defineNuxtConfig(
146
143
  logLevel: 'warning',
147
144
  },
148
145
  i18n: {
146
+ baseUrl: SITE_URL,
149
147
  detectBrowserLanguage: {
150
148
  cookieKey: I18N_COOKIE_NAME,
151
149
  cookieSecure: true,
@@ -159,6 +157,7 @@ export default defineNuxtConfig(
159
157
  },
160
158
  site: {
161
159
  debug: process.env.NODE_ENV === 'development',
160
+ url: SITE_URL,
162
161
  },
163
162
  sitemap: {
164
163
  exclude: I18N_MODULE_CONFIG.locales.map(
@@ -171,7 +170,6 @@ export default defineNuxtConfig(
171
170
  },
172
171
  },
173
172
  VIO_NUXT_BASE_CONFIG({
174
- siteUrl: SITE_URL,
175
173
  defaultLocale: 'en',
176
174
  siteName: SITE_NAME,
177
175
  stagingHost: 'localhost:3000',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-vio",
3
- "version": "4.0.3",
3
+ "version": "5.0.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -32,7 +32,7 @@
32
32
  "scripts": {
33
33
  "build": "pnpm run build:node",
34
34
  "build:node": "nuxt build .playground",
35
- "build:static": "SITE_URL=http://localhost:3002 nuxt generate .playground",
35
+ "build:static": "nuxt generate .playground",
36
36
  "dev": "pnpm run start:dev",
37
37
  "generate": "pnpm run build:static",
38
38
  "lint:fix": "pnpm run lint:js --fix && pnpm run lint:ts --fix && pnpm run lint:style --fix",
@@ -53,12 +53,10 @@ export const TITLE_TEMPLATE = ({
53
53
  export const VALIDATION_SUGGESTION_TITLE_LENGTH_MAXIMUM = 300
54
54
  export const VERIFICATION_FORMAT_UUID = helpers.regex(REGEX_UUID)
55
55
  export const VIO_NUXT_BASE_CONFIG = ({
56
- siteUrl,
57
56
  defaultLocale,
58
57
  siteName,
59
58
  stagingHost,
60
59
  }: {
61
- siteUrl?: string
62
60
  defaultLocale?: string
63
61
  siteName: string
64
62
  stagingHost?: string
@@ -66,14 +64,11 @@ export const VIO_NUXT_BASE_CONFIG = ({
66
64
  ({
67
65
  app: {
68
66
  head: {
69
- title: SITE_NAME, // fallback data to prevent invalid html at generation
67
+ title: siteName, // fallback data to prevent invalid html at generation
70
68
  },
71
69
  },
72
70
  runtimeConfig: {
73
71
  public: {
74
- i18n: {
75
- ...(siteUrl ? { baseUrl: siteUrl } : {}),
76
- },
77
72
  vio: {
78
73
  ...(stagingHost
79
74
  ? {
@@ -94,7 +89,6 @@ export const VIO_NUXT_BASE_CONFIG = ({
94
89
  ...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)
95
90
  },
96
91
  site: {
97
- ...(siteUrl ? { url: siteUrl } : {}),
98
92
  ...(defaultLocale ? { defaultLocale } : {}),
99
93
  name: siteName,
100
94
  },