Skip to content

Tag: nuxt.js

nuxt 2.14 generate does not update asyncData

I’m following closely to this feature (https://nuxtjs.org/blog/nuxt-static-improvements/#generate-time-cache-vs-full-webpack-build) I may be getting this wrong, but I hope to clarify if I can use this feature correctly. Basically, I want to skip the webpack build as highlighted in the article, and build…

ECONNREFUSED when dispatch action in nuxtServerInit

I am converting my Nuxt application to SSR – because I want to use nuxtServerInit and asyncData. These are the steps I have taken to convert it. Remove ssr: false from nuxt.config.js Dispatch actions to initialize store’s state in nuxtServerInit inside store/index.js Now my nuxt.config.js looks li…

Prevent click event in Vue conditonally

I am disabling document body scroll when my mobile nav is open which is working as expected. However it was not removing the overflow hidden when user would click a link to another route/page. I created a simple method to remove the overflow hidden when a link is clicked in the nav when the menu is open, whic…

Keycloak with nuxt-auth module

I’m using this auth-module with Keycloak. My configuration in nuxt.config.js: The connection is OK. When I click on the “connect” button, I am redirected to my Keycloak environment. Once authenticated by Keycloak, I am redirected to my nuxt.js application. However, the problem is that my sto…