Jay
Use SASS function globally
I am currently building a module and I want to use a function that I can use globally in any compoent of my Nuxt Module.
In my module.ts I currently have this:
and in the
main.scss
I import a _helpers.scss
which has a function
When I use this function in my component it is not working. How can I make it work?5 replies
Nuxt 2 PWA Caching issue
Hello! I'm using the PWA module on my Nuxt 2 project. I'm running into an issue:
I have a list of events which I'm requesting through some internal API url and saving it in the vuex store.
When I use my PWA, it is not fetching latest data. The event list stays as it is once you have downloaded the PWA. How do I fix that?
My config currently looks like this:
I have been trying to fix this issue for months now and I can't find a solution, I would really appreciate any hint 😔
5 replies
Nuxt 2 setting "Vary: User-Agent" in header
Hello, I'm using Nuxt 2 with SSR. We discovered that the Vary header entry is somewhere being set to
user-agent
. After looking for a while I found it, it's being set here in the vue-renderer.js
Can someone explain to me why it's here and if I can have a workaround to not use it? I'm not 100% sure but backend things it's bad for server performance (requesting for every different user agent)15 replies
Nuxt 2 PWA Caching Issue
Hello! I'm using the PWA module on my Nuxt 2 project. I'm running into an issue:
I have a list of events which I'm requesting through some internal API url and saving it in the vuex store.
When I use my PWA, it is not fetching latest data. The event list stays as it is once you have downloaded the PWA. How do I fix that?
My config currently looks like this:
I have been trying to fix this issue for months now and I can't find a solution, I would really appreciate any hint 😔
10 replies