@dargmuesli/nuxt-vio 4.0.3 → 5.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/nuxt.config.ts +2 -4
- package/package.json +6 -2
- package/utils/constants.ts +1 -7
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,10 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dargmuesli/nuxt-vio",
|
3
|
-
"version": "
|
3
|
+
"version": "5.0.1",
|
4
|
+
"repository": {
|
5
|
+
"type": "git",
|
6
|
+
"url": "git+https://github.com/dargmuesli/vio.git"
|
7
|
+
},
|
4
8
|
"type": "module",
|
5
9
|
"publishConfig": {
|
6
10
|
"access": "public"
|
@@ -32,7 +36,7 @@
|
|
32
36
|
"scripts": {
|
33
37
|
"build": "pnpm run build:node",
|
34
38
|
"build:node": "nuxt build .playground",
|
35
|
-
"build:static": "
|
39
|
+
"build:static": "nuxt generate .playground",
|
36
40
|
"dev": "pnpm run start:dev",
|
37
41
|
"generate": "pnpm run build:static",
|
38
42
|
"lint:fix": "pnpm run lint:js --fix && pnpm run lint:ts --fix && pnpm run lint:style --fix",
|
package/utils/constants.ts
CHANGED
@@ -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:
|
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
|
},
|