[Vuejs]-How to load json data in nuxt.js

0👍

If you’re using Nginx server, then making small change in nginx server configuration as described in the VueRouter guide.

Basically, whenever a new dynamic route is accessed , it falls back on the main index.html file which will handle the dynamic params and renders the page after api calls etc.

https://router.vuejs.org/guide/essentials/history-mode.html#example-server-configurations

source: https://github.com/nuxt/nuxt.js/issues/2177

Leave a comment