So, a while ago I needed this integration for a personal project, and of course I used the all mighty Google, but could not find any step by step t...
For further actions, you may consider blocking this person and/or reporting abuse
Now, in nuxt3 serverMiddleware has been replaced with serverHandlers!
Thank you very much for this article,it really helps me a lot!
like: serverHandlers: [
{ route: '/apis', handler: '~/server-express/index.ts' }
],
Can you send link how it's integrate?
what if I have a separate project as backend and another one with nuxt as frontend and want to connect both of them?
You can just just make http calls from nuxt to your server ( using axios ).
interesting but wont that create a problem? your nuxt frontend will be running on localhost:8080 while your backend runs on say localhost:3000
You will need to add cors on your server. And specify localhost:8080 there.
if it isnt too much to ask, could you kindly add another nuxt + express api article but this time show how cors is done, your current article wouldnt need much changes from what i understand
Sure. I will make one. You want it with nuxt2 or nuxt3?
oh wow, thank you!!! you have no idea how this save my head from this hours headache :')
also on your profile you misspelled Python :) by mistake
Thanks :D
getting 404 page not found
me too
Awesome, thanks for this!