Can anyone help with a situation regarding meta info with dynamic data.
Problem
We are using Nuxt and generate our static page using npm run generate, and have identified several problems with this approach:
open graph and twitter meta tags can't be dynamically updated because crawlers don't run JS
details page during build process is generated only once and therefore doesn't have any relevant data until user has navigated to that page with URL parameters (e.g.
example.com/cars/details?make=Audi&model=A6&carID=133852) which then feed AJAX GET request for data
Desired outcome
Open graphs, twitter and other meta tags unique for every car details page.
Question
Is it possible to achieve the desired outcome with generated static only? If not what would the process look like with SSR or server side generated meta content?
Our dist folder structure is currently:
dist/
├ index.html
├ cars/
├ index.html
└ details/
├ index.html
└ payment/
└ index.html
cars page with a list of cars
details clicking a car navigates to details page of the selected car
payment car purchase page