I have a VueJS app, I want to make the <title>
and <meta>
tags to be populated in page source itself for better SEO.
I could use Server Side Rendering but it was difficult, express.js keeps crashing and there’s JavaScript inconsistencies (ES Module imports didn’t work in node). More explanation at the very bottom.
To solve this problem, I did something wild.
I made a Go server, served the JS app. On each request, the HTML file is processed by Go and title, meta tags are dynamically populated, rest of the page is just another VueJS app.
... [READ MORE]