Hello there!
I have a question.
I am using an axios client within a Next.JS API Route:
const apiClient = axios.create({baseUrl: '...'})
Within the API route, I am setting a bearer token as default:
apiClient.defaults.headers.common['Authorization'] = Bearer ${accessToken}
After that, some async work happens, and then a request to the axios client is made.
Is each memory instance of Next.JS API routes completely separate when deployed to Vercel? Are they serverless lambda functions behind the curtains?
In other words, is it impossible that by settings apiClient.defaults.headers in one call of the API route, it would override the default headers in another?