Version
@nuxtjs/strapi: 2.1.1
nuxt: 4.0.3
Steps to reproduce
Nuxt config
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
strapi: {
token: 'A TOKEN',
}
});
Make a composable
export default async () => {
const token = useStrapiToken();
console.log('TOKEN', token.value)
}
Run the app
What is Expected?
Expected log to see A TOKEN
What is actually happening?
Received undefined
If reverting to @nuxtjs/strapi 2.1.0 it's working as expected.
I think the bug was introduced by this revert commit: 96ffbad
Version
@nuxtjs/strapi: 2.1.1
nuxt: 4.0.3
Steps to reproduce
Nuxt config
Make a composable
Run the app
What is Expected?
Expected log to see
A TOKENWhat is actually happening?
Received
undefinedIf reverting to
@nuxtjs/strapi2.1.0 it's working as expected.I think the bug was introduced by this revert commit: 96ffbad