mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-14 12:14:40 +01:00
docs: patch vueuse/head
This commit is contained in:
@@ -13,9 +13,6 @@ export default defineNuxtConfig({
|
||||
colorMode: {
|
||||
preference: 'dark'
|
||||
},
|
||||
build: {
|
||||
transpile: [/content-edge/, '@nuxtlabs/github-module-edge']
|
||||
},
|
||||
nitro: {
|
||||
prerender: {
|
||||
crawlLinks: true,
|
||||
|
||||
@@ -7,12 +7,13 @@
|
||||
"generate": "nuxi build",
|
||||
"preview": "nuxi preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"nuxt": "^3.0.0-rc.13",
|
||||
"@nuxtjs/tailwindcss": "^6.1.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nuxt-themes/docus": "npm:@nuxt-themes/docus-edge@latest",
|
||||
"@nuxtlabs/github-module": "npm:@nuxtlabs/github-module-edge@latest",
|
||||
"nuxt": "3.0.0-rc.12"
|
||||
"@nuxtlabs/github-module": "npm:@nuxtlabs/github-module-edge@latest"
|
||||
},
|
||||
"dependencies": {
|
||||
"pinceau": "^0.6.14"
|
||||
}
|
||||
"packageManager": "yarn@1.22.19"
|
||||
}
|
||||
|
||||
@@ -40,13 +40,14 @@
|
||||
"@trpc/server": "^10.0.0-proxy-beta.21"
|
||||
},
|
||||
"dependencies": {
|
||||
"nuxt": "^3.0.0-rc.13",
|
||||
"h3": "^0.8.6",
|
||||
"nanoid": "^4.0.0",
|
||||
"nuxt": "^3.0.0-rc.13",
|
||||
"ohash": "^0.1.5",
|
||||
"ufo": "^0.8.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nuxt/kit": "3.0.0-rc.13",
|
||||
"@nuxtjs/eslint-config-typescript": "^11.0.0",
|
||||
"@trpc/client": "10.0.0-rc.7",
|
||||
"@trpc/server": "10.0.0-rc.7",
|
||||
@@ -55,5 +56,10 @@
|
||||
"eslint": "^8.25.0",
|
||||
"tsup": "6.4.0",
|
||||
"typescript": "^4.7.4"
|
||||
},
|
||||
"pnpm": {
|
||||
"patchedDependencies": {
|
||||
"nuxt@3.0.0-rc.13": "patches/nuxt@3.0.0-rc.13.patch"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
22
patches/nuxt@3.0.0-rc.13.patch
Normal file
22
patches/nuxt@3.0.0-rc.13.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
diff --git a/dist/head/runtime/lib/vueuse-head.plugin.mjs b/dist/head/runtime/lib/vueuse-head.plugin.mjs
|
||||
index a3278e56986d8e8efb099c502c82d9661a36d846..148a8879ba433072cecd15995cfd5b1b69941124 100644
|
||||
--- a/dist/head/runtime/lib/vueuse-head.plugin.mjs
|
||||
+++ b/dist/head/runtime/lib/vueuse-head.plugin.mjs
|
||||
@@ -4,7 +4,7 @@ import { defineNuxtPlugin, useRouter } from "#app";
|
||||
import { appHead } from "#build/nuxt.config.mjs";
|
||||
export default defineNuxtPlugin((nuxtApp) => {
|
||||
const head = createHead();
|
||||
- head.addEntry(appHead, { resolved: true });
|
||||
+ head.addHeadObjs(appHead, { resolved: true });
|
||||
nuxtApp.vueApp.use(head);
|
||||
if (process.client) {
|
||||
let pauseDOMUpdates = true;
|
||||
@@ -25,7 +25,7 @@ export default defineNuxtPlugin((nuxtApp) => {
|
||||
}
|
||||
nuxtApp._useHead = (_meta, options) => {
|
||||
if (process.server) {
|
||||
- head.addEntry(_meta, options);
|
||||
+ head.addHeadObjs(_meta, options);
|
||||
return;
|
||||
}
|
||||
const cleanUp = head.addReactiveEntry(_meta, options);
|
||||
1285
pnpm-lock.yaml
generated
1285
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user