@dargmuesli/nuxt-vio 23.0.0-beta.7 → 23.0.0-beta.9
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.
- package/node/networking.ts +2 -4
- package/nuxt.config.ts +16 -0
- package/package.json +5 -4
- package/server/plugins/seo.ts +0 -7
package/node/networking.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import type { H3Event } from 'h3'
|
|
2
|
-
|
|
3
1
|
import { SERVICES } from './services'
|
|
4
2
|
import type { Service, ServiceName } from './services'
|
|
5
3
|
import { SITE_URL_TYPED } from './static'
|
|
6
4
|
|
|
7
|
-
export const getHost = (event:
|
|
8
|
-
const host = event.
|
|
5
|
+
export const getHost = (event: { headers: Headers }) => {
|
|
6
|
+
const host = event.headers.get('host')
|
|
9
7
|
|
|
10
8
|
if (!host) throw new Error('Host header is not given!')
|
|
11
9
|
|
package/nuxt.config.ts
CHANGED
|
@@ -21,6 +21,10 @@ import {
|
|
|
21
21
|
} from './shared/utils/constants'
|
|
22
22
|
|
|
23
23
|
const { resolve } = createResolver(import.meta.url)
|
|
24
|
+
const SHARED_TYPE_REFERENCES = [
|
|
25
|
+
{ path: resolve('shared/types/app-config.d.ts') },
|
|
26
|
+
{ path: resolve('shared/types/request-event-context.d.ts') },
|
|
27
|
+
]
|
|
24
28
|
|
|
25
29
|
export default defineNuxtConfig(
|
|
26
30
|
defu(
|
|
@@ -60,6 +64,17 @@ export default defineNuxtConfig(
|
|
|
60
64
|
strictRouteTypes: true,
|
|
61
65
|
typedPages: true,
|
|
62
66
|
},
|
|
67
|
+
hooks: {
|
|
68
|
+
// consumers' generated tsconfigs exclude `node_modules`, so this layer's type augmentations need explicit references
|
|
69
|
+
'prepare:types'({ nodeReferences, references, sharedReferences }) {
|
|
70
|
+
for (const list of [nodeReferences, references, sharedReferences]) {
|
|
71
|
+
list.push(...SHARED_TYPE_REFERENCES)
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
'nitro:prepare:types'({ references }) {
|
|
75
|
+
references.push(...SHARED_TYPE_REFERENCES)
|
|
76
|
+
},
|
|
77
|
+
},
|
|
63
78
|
modules: [
|
|
64
79
|
'@dargmuesli/nuxt-cookie-control',
|
|
65
80
|
'@nuxt/devtools',
|
|
@@ -365,6 +380,7 @@ export default defineNuxtConfig(
|
|
|
365
380
|
credits: false,
|
|
366
381
|
zeroRuntime: true,
|
|
367
382
|
},
|
|
383
|
+
skewProtection: false, // needs storage that persists across builds (https://nuxtseo.com/docs/skew-protection/guides/storage-configuration), which docker builds in ci do not provide
|
|
368
384
|
|
|
369
385
|
// environments
|
|
370
386
|
$development: {
|
package/package.json
CHANGED
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
"@nuxtjs/color-mode": "4.0.1",
|
|
13
13
|
"@nuxtjs/html-validator": "2.1.0",
|
|
14
14
|
"@nuxtjs/i18n": "10.6.0",
|
|
15
|
-
"@nuxtjs/seo": "
|
|
15
|
+
"@nuxtjs/seo": "6.0.1",
|
|
16
16
|
"@nuxtjs/turnstile": "1.1.3",
|
|
17
17
|
"@pinia/nuxt": "1.0.2",
|
|
18
18
|
"@sentry/nuxt": "10.71.0",
|
|
19
19
|
"@tailwindcss/forms": "0.5.11",
|
|
20
20
|
"@tailwindcss/typography": "0.5.20",
|
|
21
21
|
"@tailwindcss/vite": "4.3.3",
|
|
22
|
-
"@takumi-rs/core": "2.
|
|
22
|
+
"@takumi-rs/core": "2.15.1",
|
|
23
23
|
"@types/lodash-es": "4.17.12",
|
|
24
24
|
"@types/nodemailer": "8.0.2",
|
|
25
25
|
"@urql/core": "6.0.3",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"eslint-config-prettier": "10.1.8",
|
|
34
34
|
"eslint-plugin-compat": "7.0.2",
|
|
35
35
|
"eslint-plugin-prettier": "5.5.6",
|
|
36
|
-
"eslint-plugin-yml": "3.
|
|
36
|
+
"eslint-plugin-yml": "3.9.0",
|
|
37
37
|
"globals": "17.13.0",
|
|
38
38
|
"jiti": "2.7.0",
|
|
39
39
|
"jose": "6.2.12",
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"defu": "6.1.7",
|
|
58
58
|
"lodash-es": "4.18.1",
|
|
59
59
|
"nuxt": "4.6.1",
|
|
60
|
+
"nuxtseo-devtools-host": "1.0.1",
|
|
60
61
|
"pinia": "4.0.3",
|
|
61
62
|
"postcss-html": "2.0.0",
|
|
62
63
|
"prettier": "3.9.9",
|
|
@@ -103,7 +104,7 @@
|
|
|
103
104
|
"url": "git+https://github.com/dargmuesli/vio.git"
|
|
104
105
|
},
|
|
105
106
|
"type": "module",
|
|
106
|
-
"version": "23.0.0-beta.
|
|
107
|
+
"version": "23.0.0-beta.9",
|
|
107
108
|
"scripts": {
|
|
108
109
|
"build": "pnpm run build:node",
|
|
109
110
|
"build:node": "NUXT_PUBLIC_I18N_BASE_URL=https://app.localhost:3001 nuxt build playground",
|