I have a nuxt3 app and apis under /server/api
Things work locally.
But when I deploy, it’s giving me 404 on all the apis.
my netlify.toml
[build]
command = "nuxt generate"
publish = "dist"
[[redirects]]
from = "/api/*"
to = "/.netlify/functions/server/api/:splat"
status = 200
force = true
my netlify.toml
[build]
command = "nuxt generate"
publish = "dist"
[[redirects]]
from = "/api/*"
to = "/.netlify/functions/server/api/:splat"
status = 200
force = true
in my nuxt.config.ts, I have
nitro: {
preset: ‘netlify’,
…
}