Guillaume
Generate assets images
Hi everyone! 👋
I’m using
nuxt generate
with ssr: true
to create a static site and I have images stored in the assets/images folder at the root of my project.
I’d like to define dynamic paths to these images in a composable. How can I configure this properly to make sure the images work correctly in production build?6 replies
Shared API client wrapper cookie token
Hello, I've a
plugins/api.client.ts
file that defines a Nuxt plugin to provide my httpClient
(it is a library that wraps all my REST APIs). However, I need to initialize it with the token stored in the browser cookie. The problem is that when I change the page, the token becomes undefined.
1 replies