Static GitHub Issues

[2970] Static site + Vuex

prev: can't set `head.script.src` to env var inside `nuxt.config.js` file
next: App freezes on mobile devices

Hi! :) I'm creating a Nuxt site using wordpress + netlify.

At first (in dev mode) each page I call the menu and footer api, to populate menu and footer. (duh) Now I'm using vuex, so I called this only in layout/default.vue.

But can I call the vuex before generate pages? Because now, when I deploy to netlify, I need to call my api to populate vuex. :/

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2577">#c2577</a>)</em></sub></div>