Configuring Exclude routes for NitroServer on NuxtJS

I am currently trying to add an "exclude":["/api/] to my auto generated _routes.json but I cant quite seem to get my nuxt.config.ts dialed in and not sure what I am doing wrong.

based on the documentation, I added a

```
nitro: {
cloudflare: {
pages: {
routes: {
"exclude": ["/api/
"]
}
}
},

preset: 'cloudflare-pages',
minify: true,
rollupConfig: {
plugins: [
replace({
'global.GENTLY': false,
}),
],
},
},
```

and it does not make any sort of change to my _routes.json
Was this page helpful?