Static GitHub Issues

[540] Async requests on generated output

prev: Converting circular structure to JSON
next: Allow calling nuxt without `pages` directory

Hello,

I'm evaluating nuxt to see if it fits my needs to build my portfolio. I'm interested on static site generation, because most of the content will be static (my creations, my cv, some blog posts...) but I also want to supercharge it with some SPA capabilities. This means, that apart from serving the static pages, I want to be able to make requests to external JSON apis, or request static JSON files to my gh-pages.

I'm still fighting agains the static site generations. Seems that nuxt-link is not a good fit for static generated sites.For example, If I open the generated index.html file, none of the links works properly.

What I want is the following layout:

- INDEX 
-- NavBar
--- content <- changes dinamically
--footer

Is this a good idea? Does it make sense? Is nuxt a good fit for it?

Let's imagine that I can live with full page reload when I navigate between pages. Once the page that has some API component is rendered, can I make APi calls and parts of the page?

Thanks in advance.

<!--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/c469">#c469</a>)</em></sub></div>