V0 preview crashes when i18n is enabled – pre-renders /api/**

I’m seeing repeatable preview-only crashes in v0:

Next 14 project, App Router.

Enable i18n (middleware + i18n-config.ts).

Start Preview → v0 tries to preload every route, including plain /api/* endpoints.

It fetches an API handler as if it were a page, gets JSON back, and the preview bombs with “Runtime Error · Unknown error.”

Production deploys on Vercel are fine; this is purely a v0-preview issue.

Tried:

Adding rewrites() in next.config.mjs with { source: ‘/api/:path*’, destination: ‘/api/:path*’, locale: false } – removes locale-prefixed variants but the plain /api/* entry still makes the preview fail.

Moving handlers into an (api) segment fixes the preview, but that’s a workaround.

Would be great if the preview could just ignore /api/** altogether (same as prod).