@dargmuesli/nuxt-vio 1.5.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- package/nuxt.config.ts +89 -2
- package/package.json +3 -1
package/nuxt.config.ts
CHANGED
@@ -1,4 +1,9 @@
|
|
1
|
-
import { SITE_NAME } from './utils/constants'
|
1
|
+
import { LOCALES, SITE_NAME } from './utils/constants'
|
2
|
+
|
3
|
+
const BASE_URL =
|
4
|
+
'https://' +
|
5
|
+
(process.env.NUXT_PUBLIC_STACK_DOMAIN ||
|
6
|
+
`${process.env.HOST || 'localhost'}:3000`)
|
2
7
|
|
3
8
|
// https://v3.nuxtjs.org/api/configuration/nuxt.config
|
4
9
|
export default defineNuxtConfig({
|
@@ -11,10 +16,25 @@ export default defineNuxtConfig({
|
|
11
16
|
title: SITE_NAME, // fallback data to prevent invalid html at generation
|
12
17
|
},
|
13
18
|
},
|
14
|
-
|
19
|
+
extends: ['nuxt-seo-kit'],
|
20
|
+
modules: [
|
21
|
+
'@dargmuesli/nuxt-cookie-control',
|
22
|
+
'@nuxtjs/html-validator',
|
23
|
+
'@nuxtjs/i18n',
|
24
|
+
'@nuxtjs/tailwindcss',
|
25
|
+
],
|
15
26
|
nitro: {
|
16
27
|
compressPublicAssets: true,
|
17
28
|
},
|
29
|
+
runtimeConfig: {
|
30
|
+
public: {
|
31
|
+
googleAnalyticsId: '', // set via environment variable `NUXT_PUBLIC_GOOGLE_ANALYTICS_ID` only
|
32
|
+
...{
|
33
|
+
siteName: SITE_NAME,
|
34
|
+
siteUrl: BASE_URL,
|
35
|
+
},
|
36
|
+
},
|
37
|
+
},
|
18
38
|
typescript: {
|
19
39
|
shim: false,
|
20
40
|
strict: true,
|
@@ -24,4 +44,71 @@ export default defineNuxtConfig({
|
|
24
44
|
},
|
25
45
|
},
|
26
46
|
},
|
47
|
+
|
48
|
+
// modules
|
49
|
+
cookieControl: {
|
50
|
+
cookies: {
|
51
|
+
necessary: [
|
52
|
+
{
|
53
|
+
description: {
|
54
|
+
de: 'Dieser Cookie von uns speichert die Einstellungen, die in diesem Dialog getroffen werden.',
|
55
|
+
en: 'This cookie of ours stores the settings made in this dialog.',
|
56
|
+
},
|
57
|
+
id: 'c',
|
58
|
+
name: {
|
59
|
+
de: 'Cookie-Präferenzen',
|
60
|
+
en: 'Cookie Preferences',
|
61
|
+
},
|
62
|
+
targetCookieIds: ['ncc_c', 'ncc_e'],
|
63
|
+
},
|
64
|
+
{
|
65
|
+
description: {
|
66
|
+
de: 'Dieser Cookie von uns speichert die Sprache, in der diese Webseite angezeigt wird.',
|
67
|
+
en: "This cookie of ours stores the language that's used to display this website.",
|
68
|
+
},
|
69
|
+
id: 'l',
|
70
|
+
name: {
|
71
|
+
de: 'Sprache',
|
72
|
+
en: 'Language',
|
73
|
+
},
|
74
|
+
targetCookieIds: ['i18n_redirected'],
|
75
|
+
},
|
76
|
+
],
|
77
|
+
optional: [
|
78
|
+
{
|
79
|
+
description: {
|
80
|
+
de: 'Die Cookies vom Drittanbieter Google ermöglichen die Analyse von Nutzerverhalten. Diese Analyse hilft uns unsere Dienste zu verbessern, indem wir verstehen, wie diese Webseite genutzt wird.',
|
81
|
+
en: 'The third-party cookies by Google enable the analysis of user behavior. This analysis helps us to improve our services by understanding how this website is used.',
|
82
|
+
},
|
83
|
+
id: 'ga',
|
84
|
+
links: {
|
85
|
+
'https://policies.google.com/privacy': 'Google Privacy Policy',
|
86
|
+
'https://policies.google.com/terms': 'Google Terms of Service',
|
87
|
+
},
|
88
|
+
name: 'Analytics',
|
89
|
+
targetCookieIds: ['_ga', '_ga_K4R41W62BR'],
|
90
|
+
},
|
91
|
+
],
|
92
|
+
},
|
93
|
+
locales: ['en', 'de'],
|
94
|
+
},
|
95
|
+
htmlValidator: {
|
96
|
+
// failOnError: true,
|
97
|
+
logLevel: 'warning',
|
98
|
+
},
|
99
|
+
i18n: {
|
100
|
+
baseUrl: BASE_URL,
|
101
|
+
defaultLocale: 'en', // Must be set for the default prefix_except_default prefix strategy.
|
102
|
+
detectBrowserLanguage: false, // Enabling browser language detection does not generate (!) other languages than the default one.
|
103
|
+
locales: LOCALES,
|
104
|
+
vueI18n: {
|
105
|
+
fallbackWarn: false, // TODO: don't show incorrect warnings (https://github.com/intlify/vue-i18n-next/issues/776)
|
106
|
+
},
|
107
|
+
},
|
108
|
+
linkChecker: {
|
109
|
+
failOn404: false, // TODO: enable (https://github.com/harlan-zw/nuxt-seo-kit/issues/4#issuecomment-1434522124)
|
110
|
+
},
|
111
|
+
site: {
|
112
|
+
splash: false,
|
113
|
+
},
|
27
114
|
})
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dargmuesli/nuxt-vio",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.6.0",
|
4
4
|
"type": "module",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public"
|
@@ -30,9 +30,11 @@
|
|
30
30
|
},
|
31
31
|
"dependencies": {
|
32
32
|
"@dargmuesli/nuxt-cookie-control": "5.4.0",
|
33
|
+
"@nuxtjs/html-validator": "1.2.4",
|
33
34
|
"@nuxtjs/i18n": "8.0.0-beta.10",
|
34
35
|
"@nuxtjs/tailwindcss": "6.6.5",
|
35
36
|
"@tailwindcss/typography": "0.5.9",
|
37
|
+
"nuxt-seo-kit": "1.3.6",
|
36
38
|
"vue-gtag": "2.0.1"
|
37
39
|
},
|
38
40
|
"devDependencies": {
|