import { b as useSeoMeta, c as useHead, u as useRequestEvent } from './server.mjs'; import { b as getRequestURL } from '../nitro/nitro.mjs'; function useRequestURL(opts) { { return getRequestURL(useRequestEvent(), opts); } } function getSiteOrigin() { try { return useRequestURL().origin; } catch { return ""; } } function usePageSeo(input) { const origin = getSiteOrigin(); const url = input.path && origin ? new URL(input.path, origin).toString() : void 0; useSeoMeta({ title: input.title, description: input.description, ogTitle: input.title, ogDescription: input.description, ogType: "website", ...url ? { ogUrl: url } : {}, twitterCard: "summary_large_image" }); if (url) { useHead({ link: [{ rel: "canonical", href: url }] }); } } export { usePageSeo as u }; //# sourceMappingURL=usePageSeo-0Fjg7K52.mjs.map