In our Nuxt configuration, we set up route rules to proxy our API routes to the backend:
// https://nuxt.com/docs/api/configuration/nuxt-configexport default defineNuxtConfig({ routeRules: { '/api/**': { proxy: `${process.env.NUXT_API_ENDPOINT}/api/**`, }, },})This works out-of-the-box with Cloudflare Pages for example, but on our Vercel deployment it all returns a 404:

Going from documentation, it seems to be supported: https://vercel.com/docs/frameworks/nuxt#using-routerules Also from the Nitro documentation, proxy is a core route rule: https://nitro.build/guide/routing#route-rules
Is this supposed to work with Vercel?
I would use a vercel.json with rewrites, but it doesn't seem like they support endpoints based on environment variables?