Replies: 2 comments 5 replies
-
Some more info from my side: .env file looks like this: NUXT_API_PARTY_ENDPOINTS_FIRST_URL=https://xxx Before using nuxt-api-party, my .env variables had VITE in front of them. Maybe that's the issue ? |
Beta Was this translation helpful? Give feedback.
-
It seems I was too fast to declare victory. There's a very very weird thing going on. I see that the endpoint is being hit by the api call. I'm making some complex machine learning calculations that can take up to 1 minute to process. On localhost, it all works. On Vercel, when I make the api call with nuxt-api-party I see that the endpoint is hit but then after 10 seconds I get a 504 error. The endpoint is still processing the calculation and ends without an error, the client though gets a 504. If I decrease the processing time, i.e. say 1 second, it all works (on both localhost, and on Vercel) :( Is there any time mechanism built on nuxt-api-party ? Are there any ideas ? Thanks a lot ! |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm doing something probably wrong so I thought it is better to ask for help :)
nuxt-api-party is working well in my dev environment on my machine. Here's the nuxt.config.ts:
After deploying the app to vercel, the api calls fail. My understanding of runtimeConfig is that the variables are populated only in the server and then get passed to the frontend, but it seems my frontend is not getting those (as it seems). Any ideas what am I doing wrong ? I'm using a .env file that is the same for dev and production (I also tried a .env.production file but it didn't change anything). Thanks a lot for any inputs !
Beta Was this translation helpful? Give feedback.
All reactions