You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are scenarios when /api route handled by another server/proxy. To make it possible still send request to local Nuxt server without additional /server/routes/front-api directory, we can have defaultApiDir option in Nitro config.
Additional information
Would you be willing to help implement this feature?
The text was updated successfully, but these errors were encountered:
Hi @enkot. PR is welcome to introduce apiDir (filesystem) and apiRoutePrefix (route prefix /api) options 👍🏼 BTW in meantime, you can simply make a symlink using ln -s server/api server/routes/front-api to alias.
Describe the feature
There are scenarios when
/api
route handled by another server/proxy. To make it possible still send request to local Nuxt server without additional/server/routes/front-api
directory, we can havedefaultApiDir
option in Nitro config.Additional information
The text was updated successfully, but these errors were encountered: