fix: remove conflicting middleware.ts, proxy.ts already handles locale routing
Some checks failed
Workflow / ⚫️ Test (push) Has been cancelled
Workflow / ʦ TypeScript (push) Has been cancelled

Next.js 16 uses proxy.ts instead of middleware.ts. The existing proxy.ts
already includes next-intl locale routing + auth guards. CACHE_BUST=5.
This commit is contained in:
Zaid Marzguioui
2026-03-31 22:49:35 +02:00
parent 4450776826
commit d27fab7505
2 changed files with 1 additions and 16 deletions

View File

@@ -4,7 +4,7 @@ WORKDIR /app
# --- Install + Build in one stage ---
FROM base AS builder
ARG CACHE_BUST=4
ARG CACHE_BUST=5
COPY . .
RUN pnpm install --no-frozen-lockfile
ENV NEXT_TELEMETRY_DISABLED=1

View File

@@ -1,15 +0,0 @@
import createMiddleware from 'next-intl/middleware';
import { routing } from '@kit/i18n/routing';
export default createMiddleware(routing);
export const config = {
matcher: [
// Match all pathnames except:
// - API routes (/api/...)
// - Next.js internals (/_next/...)
// - Static files with extensions
'/((?!api|_next|.*\\..*).*)',
],
};