-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Schema org appears in serve but not in build #42
Comments
Hey @FlorentinLedy Would you mind sharing a bit more about your app? Are you SSR'ing? It's not clear from the code you provided. If so, how have you set up the head SSR? |
Hey @harlan-zw |
I would like to point out that my application is a SPA and therefore is it possible to use schema org other than in SSR? |
Hello everyone,
I'm sorry to bother you but I've been stuck on a problem for several days.
I am on Vue 3 and I am using composition API to build schema org. I also use vue router for different page, so several different vue have different schema.
My problem is that when I use npm run serve I can see the org schema generated code appear but when I do npm run build and access the website the org schema code does not appear.
Here is what I see in the code when I use npm run serve:
This is what I get on the build version:
I still searched with CTRL+F if the keyword "schema" appears but this is not the case so the schema is not found at the level of the build version.
Here is my vue.config.js :
Here is my main.js :
Here is an example of a vue :
And here is my App.vue :
I don't really understand why the serve version benefits from the org schema but not why the build version doesn't.
I would really appreciate any help on this as I can't seem to find any solutions.
Thank you in advance for your help ! :)
The text was updated successfully, but these errors were encountered: