We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to set meta tags server side for the web build.
The doc mentions to wrap useAsyncData for SSR aware code.
It is unclear how a implementation for such a wrapper function would look like.
https://ionic.nuxtjs.org/cookbook/web-and-device#a-single-codebase
Our current workaround for SSR to set meta tags from asynchronous data on a nuxt/ionic web server is to
useIonMeta.ts export function useIonMeta(seoInput: UseSeoMetaInput) { useServerSeoMeta(seoInput); onIonViewWillEnter(() => { useSeoMeta(seoInput); }); }
App.vue const { data } = await useFetch(`https://gorest.co.in/public/v2/users`); useIonMeta({ title: () => data.value?.name, // more meta tags e.g. description, ogImageUrl, etc });
I would be more than happy to modify the docs and create a PR.
Thanks
The text was updated successfully, but these errors were encountered:
No branches or pull requests
馃摎 Is your documentation request related to a problem?
I want to set meta tags server side for the web build.
The doc mentions to wrap useAsyncData for SSR aware code.
It is unclear how a implementation for such a wrapper function would look like.
馃攳 Where should you find it?
https://ionic.nuxtjs.org/cookbook/web-and-device#a-single-codebase
鈩癸笍 Additional context
Our current workaround for SSR to set meta tags from asynchronous data on a nuxt/ionic web server is to
I would be more than happy to modify the docs and create a PR.
Thanks
The text was updated successfully, but these errors were encountered: