I am testing around with Nuxt.js to generate a static website.
Is it possible to generate a 100% static site when using an API to fetch data, so that one can get rid of the API and requests?
Based on my tests so far that all the files are generated properly and being hosted on the Github Pages and can be reached, except:
- When hitting the pages directly via URL bar, no error (expected behavior)
- When navigating to the pages via routes, the pages is still sending the request to API (does not exist outside local machine), even though the data has already been fetched and the
.html
file is generated with the data already during the generate process.
Using asyncData to get the data for the components from the API.