Fix cookie secure flag for HTTP testing and add Pinia store

This commit is contained in:
Torsten Schulz (local)
2025-10-21 14:25:07 +02:00
parent 43071b45a9
commit 463418c6e2
154 changed files with 1294 additions and 1191 deletions

View File

@@ -0,0 +1,23 @@
import { hasInjectionContext, inject } from 'vue';
import { b as useNuxtApp } from './server.mjs';
import { u as useHead$1, h as headSymbol } from '../routes/renderer.mjs';
function injectHead(nuxtApp) {
const nuxt = nuxtApp || useNuxtApp();
return nuxt.ssrContext?.head || nuxt.runWithContext(() => {
if (hasInjectionContext()) {
const head = inject(headSymbol);
if (!head) {
throw new Error("[nuxt] [unhead] Missing Unhead instance.");
}
return head;
}
});
}
function useHead(input, options = {}) {
const head = options.head || injectHead(options.nuxt);
return useHead$1(input, { head, ...options });
}
export { useHead as u };
//# sourceMappingURL=composables-CK-Mp9jS.mjs.map