Subscribe on changes!

Default <head> config to override "Vue App"

avatar
Jan 3rd 2023

What problem does this feature solve?

Build a SPA and watch the site title flash. Share it on any social media site and watch your site be misrepresented.

Yes, I know what your official solution is. Yes, I understand why it is like this Yes, I understand this can be fixed with SSR. No, none of these are an appropriate solutions and are clearly cop-outs. No, having social media sites show your site preview as "Vue App" is simply unacceptable in 2023.

I am not aware of any other SPA/SSG that has these issues without a suitable solution

What does the proposed API look like?

Add a config in vue.config.js to override the default "Vue App" meta with a new default at build-time. Implementers can rewrite the title again with @vueuse/head at run-time to something more accurate if needed, but at least scrapers and site previews won't give the impression that the website is a college project.

avatar
Jan 3rd 2023
  1. This seems to be about Vue CLI, so it's the wrong repository.
  2. Vue CLI is in maintenance mode, so no further features will be added.
  3. you can already edit the title in public/index.html.. For vite based projects, that's also possible.
  4. Your tone does not warrant any further interaction. Good luck.