opgbaudouin

Results 4 comments of opgbaudouin

Hope this helps someone: i have this: `/plugins/axios.js` ``` import axios from 'axios'; function tokenHandler(config, store) { if (store.state.account.user && store.state.account.user.jwt) { config.headers.common['Authorization'] = `Bearer ${store.state.account.user.jwt}`; } return config }...

IMPORTANT. UPDATE: This solution will APPEAR to work, but only makes the problem less visible. I.e. I simply do not know what Nuxt 'Does' on a new request - i...

This is an issue for us as well : We use a monorepo where one of the packages is a nuxt typescript build , the rest is API, etc, etc...

> @opgbaudouin About `"@api/*"` in `tsconfig.json` it will just resolves it for types imports / type checking. Yup - the cleanest way i found to do that between packages (in...