Next.js Discord

Discord Forum

exclude API from i18n localisation.

Unanswered
Lilac posted this in #help-forum
Open in Discord
LilacOP
I am in a project where someone else made the structure, they included the API folder under localisation, and heavily vibecoded. I want to heavily vibe code too, but gpt and claude can't even comprehend proxy.ts instead of middleware.ts. It seems to still add the localisation path prefix even tough I tried
export const config = {
  matcher: [
    '/',
    '/(fi|en)/:path*',
    '/((?!api|_next|_vercel|.*\\..*).*)',
  ],
}

0 Replies