Issues with functions routing with Nuxt.js

So I've been building out an API on pages using functions by connecting a git repo with the following structure
functions
├── ping.js
└── index.js
functions
├── ping.js
└── index.js
When I deploy it I can send a get request to mydomain.pages.dev/ping and it will respond with { "msg": "pong"} I want to deploy a Nuxt font end to this mydomain.pages.dev and have all the routes defined in my functions folder like /ping be considered API requests by the router. But when I deploy a Nuxt project with the functions folder included, Nuxt overrides all of the routes in folders and just redirects the page to / on Nuxt. The documentation on how to manage Nuxt routing with functions is pretty sparse https://developers.cloudflare.com/pages/framework-guides/deploy-a-nuxt-site/#use-bindings-in-your-nuxt-application
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server