So I'm trying to use Nuxt with a local install of Craft CMS to generate a static site (and eventually a headless CMS). It works just fine locally... because it has access to the local API endpoints on my machine. nuxt generate
works too, as it can reach the API, however, when I deploy the static output from the /dist
folder, my links between pages fail because it's still trying to hit my local API. I though that the nuxt generate
would inject the necessary data for that page, and I could still use the nice "SPA" style page transitions, but with all static content (maybe I'm wrong here?).
Any thoughts would be helpful, thanks!
<!--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/c912">#c912</a>)</em></sub></div>