@dargmuesli/nuxt-vio 3.0.0-beta.17 → 3.0.0-beta.18
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/utils/constants.ts +13 -9
package/package.json
CHANGED
package/utils/constants.ts
CHANGED
@@ -35,9 +35,9 @@ export const VIO_NUXT_BASE_CONFIG = ({
|
|
35
35
|
siteName,
|
36
36
|
stagingHost,
|
37
37
|
}: {
|
38
|
-
baseUrl
|
38
|
+
baseUrl?: string
|
39
39
|
siteName: string
|
40
|
-
stagingHost
|
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
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
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
|
})
|