'Statically generate vuex store state based on the request url

I'm developing a nuxt app with WordPress as headless CMS. The intention is to use mode static and to have all my pages be staticly generated. However, I suppose I'm a little bit unfamiliar with how SSG works in nuxt. There is a lot of data from WordPress (like the current title, description, menus, etc.) that needs to be available globally throughout my app. Hence the need for incorporating this in the vuex store. The state, simply put, needs to be populated with an API call to the WordPress server with the requested URL provided. Is this possible to generate on build time? Or will the state simply have to be generated on the client side?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source