DEV Community


Discussion on: Vite dev server with "netlify dev" support

entioentio profile image

Hi Eugene, I'm struggling with setting up vite + netlify, I tried this snippet, and it doesn't seem to work (or maybe I just misunderstand it big times). Would you care sharing a link to repo with a working example of this?

web2033 profile image
Eugene Kopich Author

You should then create a function, like netlify/functions/hello.js, and call it from your .vue component like fetch('/api/hello) in an appropriate place.

Forem Open with the Forem app